CN104977003A - Indoor people search method, cloud server, and system based on shared track - Google Patents
Indoor people search method, cloud server, and system based on shared track Download PDFInfo
- Publication number
- CN104977003A CN104977003A CN201510366240.8A CN201510366240A CN104977003A CN 104977003 A CN104977003 A CN 104977003A CN 201510366240 A CN201510366240 A CN 201510366240A CN 104977003 A CN104977003 A CN 104977003A
- Authority
- CN
- China
- Prior art keywords
- target terminal
- indoor
- terminal
- data
- cloud server
- 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.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01C—MEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
- G01C21/00—Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00
- G01C21/20—Instruments for performing navigational calculations
- G01C21/206—Instruments for performing navigational calculations specially adapted for indoor navigation
Landscapes
- Engineering & Computer Science (AREA)
- Radar, Positioning & Navigation (AREA)
- Remote Sensing (AREA)
- Automation & Control Theory (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Navigation (AREA)
Abstract
本发明公开了一种基于共享轨迹的室内寻人方法,包括:实时获取目标终端的运动数据;根据实时获取目标终端的运动数据,确定目标终端的室内行走轨迹;向其他终端或指定终端共享该目标终端的室内行走轨迹,供其导航至目标终端的当前位置;本发明还公开了一种基于共享轨迹的室内寻人云端服务器及系统。本发明提出的基于共享轨迹的室内寻人方法、云端服务器及系统,能够准确、快速地完成室内寻人。
The invention discloses an indoor tracing method based on a shared track, which includes: acquiring motion data of a target terminal in real time; determining the indoor walking track of the target terminal according to the real-time acquired motion data of the target terminal; sharing the track with other terminals or designated terminals The indoor walking track of the target terminal is used to navigate to the current position of the target terminal; the invention also discloses an indoor person tracing cloud server and system based on the shared track. The indoor person-finding method, cloud server and system based on the shared track proposed by the present invention can accurately and quickly complete indoor person-finding.
Description
技术领域technical field
本发明涉及室内定位技术领域,特别是指一种基于共享轨迹的室内寻人方法、云端服务器及系统。The invention relates to the technical field of indoor positioning, in particular to an indoor tracing method based on a shared trajectory, a cloud server and a system.
背景技术Background technique
室内公共环境诸如商场、办公楼、飞机场、火车站是人们不可避免的活动区域。研究表明,人们每天花费80%的时间生活在室内,基于室内位置的服务显得尤为重要。室内定位采用无线通讯、基站定位、惯导定位等多种技术实现人员、物体等在室内空间中的位置定位。早期的室内定位技术主要是通过部署特殊的硬件设备实现的,比如红外线设备,声波设备,视觉设备,无线射频发射器及探测装置等。这类方法借助位置已知的定位信号源,被定位终端接收来自每个定位信号源的信号并运用特定的测距方法来测量相互间的距离,最终通过三边甚至多边定位方法来确定对象的空间位置。尽管这些方法取得了较好的室内定位效果,然而由于其依赖于价格昂贵的特定硬件设备,极大的增加了定位的成本开销,而且部署难度过大,从而缺乏现实的可行性。Indoor public environments such as shopping malls, office buildings, airports, and railway stations are unavoidable activity areas for people. Studies have shown that people spend 80% of their time indoors every day, and indoor location-based services are particularly important. Indoor positioning uses various technologies such as wireless communication, base station positioning, and inertial navigation positioning to realize the positioning of people and objects in indoor space. The early indoor positioning technology was mainly realized by deploying special hardware equipment, such as infrared equipment, sound wave equipment, visual equipment, wireless radio frequency transmitters and detection devices, etc. This type of method uses a positioning signal source with a known position, and the positioned terminal receives the signal from each positioning signal source and uses a specific ranging method to measure the distance between each other, and finally determines the location of the object through a trilateral or even multilateral positioning method. Spatial location. Although these methods have achieved good indoor positioning results, due to their dependence on expensive specific hardware devices, the cost of positioning is greatly increased, and the deployment is too difficult, thus lacking in practical feasibility.
日常生活中总会遇到找人的情景,例如在陌生的城市与朋友相约,两人在同一栋建筑物理兜兜转转,却始终找不到对方的具体位置;当你需要尽快到新客户的办公场所进行会谈,面对完全不熟悉的建筑,可能会耽搁与客户会面从而导致不必要的损失。In daily life, there are always situations of looking for someone. For example, when you meet a friend in a strange city, the two physically go around in the same building, but you can’t find each other’s exact location; when you need to go to the new customer’s Talking in the office, facing a completely unfamiliar building, may delay meeting with customers and cause unnecessary losses.
针对以上问题,目前尚未有有效的解决方案。For the above problems, there is no effective solution at present.
发明内容Contents of the invention
有鉴于此,本发明的目的在于提出一种基于共享轨迹的室内寻人方法、云端服务器及系统,能够准确、快速地完成室内寻人。In view of this, the object of the present invention is to propose a method, cloud server and system for indoor person tracing based on shared trajectories, which can accurately and quickly complete indoor person tracing.
基于上述目的本发明提供的基于共享轨迹的室内寻人方法,包括:Based on the above-mentioned purpose, the indoor tracing method based on shared trajectory provided by the present invention includes:
实时获取目标终端的运动数据;Obtain the motion data of the target terminal in real time;
根据实时获取目标终端的运动数据,确定目标终端的室内行走轨迹;According to the motion data of the target terminal obtained in real time, the indoor walking trajectory of the target terminal is determined;
向其他终端或指定终端共享该目标终端的室内行走轨迹,供其导航至目标终端的当前位置。Share the indoor walking track of the target terminal with other terminals or designated terminals for them to navigate to the current location of the target terminal.
在一些实施方式中,从目标终端实时获取的运动数据包括目标终端内置的加速度计的加速度数据以及目标终端内置的陀螺仪和指南针的方向数据;In some implementations, the motion data acquired in real time from the target terminal includes the acceleration data of the built-in accelerometer of the target terminal and the direction data of the built-in gyroscope and compass of the target terminal;
所述根据实时获取目标终端的运动数据,确定目标终端的室内行走轨迹的步骤则还包括:The step of determining the indoor walking trajectory of the target terminal according to the real-time acquisition of the motion data of the target terminal further includes:
根据加速度计的加速度数据计算出目标终端的步长和步频;Calculate the step size and step frequency of the target terminal according to the acceleration data of the accelerometer;
根据陀螺仪和指南针的方向数据计算出目标终端的运动方向;Calculate the direction of movement of the target terminal based on the direction data of the gyroscope and compass;
根据目标终端的初始位置和初始方向,结合步长和步频、运动方向,得到室内行走轨迹。According to the initial position and initial direction of the target terminal, combined with the step length, step frequency, and motion direction, the indoor walking trajectory is obtained.
在一些实施方式中,所述根据目标终端的初始位置和初始方向,结合步长和步频、运动方向,得到室内行走轨迹的步骤则还包括:In some implementations, the step of obtaining the indoor walking trajectory according to the initial position and initial direction of the target terminal in combination with the step size, step frequency, and motion direction further includes:
根据目标终端的初始位置和初始方向,结合步长和步频、运动方向,得到目标终端每一步的位置信息;According to the initial position and initial direction of the target terminal, combined with the step length, step frequency, and motion direction, the position information of each step of the target terminal is obtained;
将目标终端每一步的位置信息与室内地图兴趣点进行匹配;Match the location information of each step of the target terminal with the points of interest on the indoor map;
将目标终端的匹配得到的每一步的匹配位置信息,实时显示在室内地图上,形成带有每一步的匹配位置信息的室内行走轨迹。The matching position information of each step obtained from the matching of the target terminal is displayed on the indoor map in real time to form an indoor walking track with the matching position information of each step.
在一些实施方式中,所述方法还包括:In some embodiments, the method also includes:
获取指定终端的当前位置信息以及室内地图的兴趣点拓扑地图;Obtain the current location information of the specified terminal and the topological map of points of interest in the indoor map;
通过路径规划算法计算从指定终端的当前位置到目标终端当前位置的最短路径;Calculate the shortest path from the current location of the specified terminal to the current location of the target terminal through the path planning algorithm;
将该最短路径返回给指定终端用于导航。Return the shortest path to the specified terminal for navigation.
本发明的另一方面还提供了一种基于共享轨迹的室内寻人云端服务器,包括:Another aspect of the present invention also provides a cloud server for indoor person tracing based on shared tracks, including:
数据获取模块,用于实时获取目标终端的运动数据;The data acquisition module is used to acquire the motion data of the target terminal in real time;
轨迹模块,用于根据实时获取的目标终端运动数据,确定该目标终端的室内行走轨迹;A track module, configured to determine the indoor walking track of the target terminal according to the target terminal motion data acquired in real time;
共享模块,用于向其他终端或指定终端共享该目标终端的室内行走轨迹,供其导航至目标终端的当前位置;The sharing module is used to share the indoor walking track of the target terminal with other terminals or designated terminals, so that they can navigate to the current position of the target terminal;
存档模块,用于存储实时获取的终端的运动数据及其室内行走轨迹。The archiving module is used to store the motion data of the terminal acquired in real time and its indoor walking track.
在一些实施方式中,所述数据获取模块从目标终端实时获取的运动数据包括目标终端内置的加速度计的加速度数据以及目标终端内置的陀螺仪和指南针的方向数据;In some embodiments, the motion data acquired by the data acquisition module in real time from the target terminal includes the acceleration data of the built-in accelerometer of the target terminal and the direction data of the built-in gyroscope and compass of the target terminal;
所述轨迹模块则还用于根据加速度计的加速度数据计算出目标终端的步长和步频;根据陀螺仪和指南针的方向数据计算出目标终端的运动方向;以及,根据目标终端的初始位置和初始方向,结合步长和步频、运动方向,得到室内行走轨迹。The track module is also used to calculate the step length and step frequency of the target terminal according to the acceleration data of the accelerometer; calculate the direction of motion of the target terminal according to the direction data of the gyroscope and compass; and, according to the initial position and The initial direction, combined with the step length and step frequency, and the direction of motion, can obtain the indoor walking trajectory.
在一些实施方式中,所述轨迹模块还用于根据目标终端的初始位置和初始方向,结合步长和步频、运动方向,得到目标终端每一步的位置信息;将目标终端每一步的位置信息与室内地图兴趣点进行匹配;以及,将目标终端的匹配得到的每一步的匹配位置信息,实时显示在室内地图上,形成带有每一步的匹配位置信息的室内行走轨迹。In some embodiments, the trajectory module is further used to obtain the position information of each step of the target terminal according to the initial position and initial direction of the target terminal, in combination with the step length, step frequency, and direction of motion; the position information of each step of the target terminal Matching with points of interest on the indoor map; and displaying the matching location information of each step obtained through the matching of the target terminal on the indoor map in real time to form an indoor walking track with the matching location information of each step.
在一些实施方式中,所述数据获取模块还用于获取指定终端的当前位置信息以及室内地图的兴趣点拓扑地图;In some implementations, the data acquisition module is also used to acquire the current location information of the designated terminal and the topological map of points of interest of the indoor map;
所述轨迹模块则还用于通过路径规划算法计算从指定终端的当前位置到目标终端当前位置的最短路径;所述共享模块还用于将该最短路径返回给指定终端用于导航。The trajectory module is also used to calculate the shortest path from the current location of the specified terminal to the current location of the target terminal through a path planning algorithm; the sharing module is also used to return the shortest path to the specified terminal for navigation.
本发明的又一方面还提供了一种基于共享轨迹的室内寻人系统,包括至少一个目标终端,至少一个指定终端,以及如上所述的云端服务器;Another aspect of the present invention also provides an indoor person-finding system based on a shared trajectory, including at least one target terminal, at least one designated terminal, and the above-mentioned cloud server;
所述目标终端用于采集自身的运动数据并上传到所述云端服务器;The target terminal is used to collect its own motion data and upload it to the cloud server;
所述指定终端用于从云端服务器接收目标终端的室内行走轨迹并根据该室内行走轨迹导航至目标终端。The specified terminal is used to receive the indoor walking track of the target terminal from the cloud server and navigate to the target terminal according to the indoor walking track.
在一些实施方式中,所述目标终端包括加速度计和陀螺仪。In some embodiments, the target terminal includes an accelerometer and a gyroscope.
从上面所述可以看出,本发明提供的基于共享轨迹的室内寻人方法、云端服务器及系统,通过从目标终端获取其实时采集的运动数据,给定初始位置与初始方向,利用惯性导航技术得到持有目标终端的用户A在公共室内空间的行走轨迹并且利用像素值与室内地图进行匹配;再将用户A实时的室内行走轨迹共享给持有指定终端的用户B或更多的其他用户;还可通过获取目标终端同时设置并上传的共享密钥,从而令持有指定终端的用户B利用共享密钥下载用户A的行走轨迹,基于室内兴趣点拓扑地图从当前位置导航至目标点,在保证用户隐私的前提下,大大提高了室内寻人的效率。It can be seen from the above that the indoor tracing method, cloud server and system provided by the present invention based on the shared trajectory obtain the motion data collected in real time from the target terminal, given the initial position and initial direction, and use inertial navigation technology Obtain the walking trajectory of user A holding the target terminal in the public indoor space and use the pixel value to match the indoor map; then share the real-time indoor walking trajectory of user A with user B holding the specified terminal or more other users; It is also possible to obtain the shared key set and uploaded by the target terminal at the same time, so that user B holding the specified terminal can use the shared key to download the walking track of user A, and navigate from the current position to the target point based on the indoor point-of-interest topology map. Under the premise of ensuring user privacy, the efficiency of indoor tracing is greatly improved.
附图说明Description of drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the accompanying drawings required in the embodiments. Obviously, the accompanying drawings in the following description are only some of the present invention. Embodiments, for those of ordinary skill in the art, other drawings can also be obtained based on these drawings without any creative effort.
图1为本发明提供的基于共享轨迹的室内寻人方法的实施例的流程图;Fig. 1 is the flow chart of the embodiment of the method for finding people indoors based on shared track provided by the present invention;
图2为本发明提供的基于共享轨迹的室内寻人方法的实施例的惯性导航方法流程图;FIG. 2 is a flowchart of an inertial navigation method according to an embodiment of an indoor person-finding method based on shared trajectories provided by the present invention;
图3为本发明提供的基于共享轨迹的室内寻人方法的实施例的云服务流程图;Fig. 3 is the cloud service flow chart of the embodiment of the indoor people-finding method based on the shared trajectory provided by the present invention;
图4a为本发明提供的基于共享轨迹的室内寻人方法的实施例的带有兴趣点的室内地图示例图;FIG. 4a is an example diagram of an indoor map with points of interest in an embodiment of the indoor people-finding method based on shared trajectories provided by the present invention;
图4b为本发明提供的基于共享轨迹的室内寻人方法的实施例的基于拓扑地图的路径规划示例图;Fig. 4b is an example diagram of path planning based on topological maps of an embodiment of the indoor people-finding method based on shared trajectories provided by the present invention;
图5为本发明提供的基于共享轨迹的室内寻人云端服务器的实施例的结构示例图;Fig. 5 is a structural example diagram of an embodiment of an indoor person-finding cloud server based on a shared trajectory provided by the present invention;
图6为本发明提供的基于共享轨迹的室内寻人系统的实施例的结构示例图。Fig. 6 is a structural example diagram of an embodiment of an indoor person-finding system based on a shared trajectory provided by the present invention.
具体实施方式Detailed ways
为使本发明的目的、技术方案和优点更加清楚明白,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进一步进行清楚、完整、详细地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员所获得的所有其他实施例,都属于本发明保护的范围。In order to make the purpose, technical solutions and advantages of the present invention clearer, the technical solutions in the embodiments of the present invention will be further clearly, completely and detailedly described in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described The embodiments are only some of the embodiments of the present invention, not all of them. All other embodiments obtained by persons of ordinary skill in the art based on the embodiments of the present invention belong to the protection scope of the present invention.
需要说明的是,本发明实施例中所有使用“第一”和“第二”的表述均是为了区分两个相同名称非相同的实体或者非相同的参量,可见“第一”“第二”仅为了表述的方便,不应理解为对本发明实施例的限定,后续实施例对此不再一一说明。It should be noted that all expressions using "first" and "second" in the embodiments of the present invention are to distinguish two entities with the same name but different parameters or parameters that are not the same, see "first" and "second" It is only for the convenience of expression, and should not be construed as a limitation on the embodiments of the present invention, which will not be described one by one in the subsequent embodiments.
如图1所示,为本发明提供的基于共享轨迹的室内寻人方法的实施例的流程图。As shown in FIG. 1 , it is a flow chart of an embodiment of the method for finding people indoors based on shared trajectories provided by the present invention.
所述基于共享轨迹的室内寻人方法,主要包括以下几个步骤:The indoor method for finding people based on the shared trajectory mainly includes the following steps:
步骤101:实时获取目标终端的运动数据;Step 101: Obtain the motion data of the target terminal in real time;
步骤102:根据实时获取目标终端的运动数据,确定目标终端的室内行走轨迹;Step 102: Determine the indoor walking track of the target terminal according to the motion data of the target terminal acquired in real time;
步骤103:向其他终端或指定终端共享该目标终端的室内行走轨迹,供其导航至目标终端的当前位置。Step 103: Share the indoor walking track of the target terminal with other terminals or designated terminals for them to navigate to the current location of the target terminal.
进一步的,获取到的目标终端运动数据利用惯性导航方法计算持有目标终端的运动者的室内行走轨迹,在持有目标终端的运动者的运动过程中,运动者持有的目标终端通过运动传感器按照固定的采样频率f进行运动路径信息采样,其中:从目标终端的运动传感器实时获取的运动数据包括目标终端内置的加速度计的加速度数据,目标终端内置的陀螺仪和指南针的方向数据。Further, the acquired motion data of the target terminal is used to calculate the indoor walking trajectory of the athlete holding the target terminal using the inertial navigation method. During the movement of the athlete holding the target terminal, the target terminal held by the athlete passes through the motion sensor. The motion path information is sampled according to a fixed sampling frequency f, wherein: the motion data acquired in real time from the motion sensor of the target terminal includes the acceleration data of the built-in accelerometer of the target terminal, and the direction data of the built-in gyroscope and compass of the target terminal.
如图2所示,所述根据实时获取目标终端的运动数据,确定目标终端的室内行走轨迹的步骤102则还可进一步包括:As shown in Figure 2, the step 102 of determining the indoor walking track of the target terminal according to the real-time acquisition of the motion data of the target terminal may further include:
步骤201:根据加速度计的加速度数据计算出目标终端的步长和步频;Step 201: Calculate the step length and step frequency of the target terminal according to the acceleration data of the accelerometer;
根据加速度计测量得到的加速度数据确定用户步数,通过低通滤波器去除测量数据中的高频噪声,在运行Kalman滤波算法进行数值去噪;通过波峰波谷检测方法识别出加速度在测量时间范围内的极大值和极小值,并根据相邻的极大极小值,以自适应门限法判别持有目标终端的运动者是否迈步,每当判定持有目标终端的运动者迈出一步,计步器加1,持有目标终端的运动者在测量时间内行进的总步数记为N;自适应门限法能够有效地根据运动者的走步姿势与习惯修正判定为跨步的加速度范围,能在短时间内通过有限的距离得到最适宜特定运动者的跨步判定方式;Determine the number of user steps based on the acceleration data measured by the accelerometer, remove high-frequency noise in the measurement data through a low-pass filter, and perform numerical denoising by running the Kalman filter algorithm; identify the acceleration within the measurement time range through the peak and valley detection method The maximum and minimum values of the target terminal, and according to the adjacent maximum and minimum values, use the adaptive threshold method to judge whether the athlete holding the target terminal takes a step. Whenever it is determined that the athlete holding the target terminal takes a step, Add 1 to the pedometer, and the total number of steps taken by the athlete holding the target terminal within the measurement time is recorded as N; the adaptive threshold method can effectively modify the acceleration range determined as a stride according to the athlete's walking posture and habits , can obtain the most suitable stride judgment method for a specific athlete through a limited distance in a short time;
利用步长与步频线性关系测定用户步长A,即Ai=a·f(i)+b。其中,i为步数,a、b为运动者的步伐参数,可以通过采样数据的线性回归确定。The step length A of the user is determined by using the linear relationship between the step length and the step frequency, that is, A i =a·f(i)+b. Among them, i is the number of steps, a and b are the step parameters of the athlete, which can be determined by linear regression of sampled data.
步骤202:根据陀螺仪和指南针的方向数据计算出目标终端的运动方向;Step 202: Calculate the movement direction of the target terminal according to the direction data of the gyroscope and the compass;
指南针的作用主要是为惯性导航方法提供初始方向,之后的惯性导航方法定位过程中则利用陀螺仪进行行走方向的估计,因此,初始方向的确定:The role of the compass is mainly to provide the initial direction for the inertial navigation method. In the positioning process of the inertial navigation method, the gyroscope is used to estimate the walking direction. Therefore, the determination of the initial direction:
持有目标终端的运动者在定位的开始阶段,通过获取指南针数据得到用户当前所处的室内环境中的绝对方向(即指南针获取的世界坐标系下的人员朝向),提供基于惯性导航方法的初始方向。持有目标终端的运动者在运动过程中,目标终端(可为任意的便携式智能设备)可通过获取陀螺仪测量的返回值确定运动者在行进过程中的角度变化,并将该角度变化情况与已经获得的持有目标终端的运动者运动的初始方向相叠加,获得目标终端的绝对运动方向;当目标终端未获得有向地标提供的目标终端初始方向时,则只能计算相对角度;在迈出一步的过程中,即t0~tn时间内的一次时间积分计算出用户第i步过程中的角度变化αi,计算可得用户第k+1步的位置(xk+1,yk+1),In the initial stage of positioning, the athlete holding the target terminal obtains the absolute direction of the user's current indoor environment (that is, the orientation of the person in the world coordinate system obtained by the compass) by obtaining the compass data, and provides an initial positioning based on the inertial navigation method. direction. During the movement of the athlete holding the target terminal, the target terminal (which can be any portable smart device) can determine the angle change of the athlete during the travel process by obtaining the return value measured by the gyroscope, and compare the angle change with the The obtained initial direction of the movement of the athlete holding the target terminal is superimposed to obtain the absolute movement direction of the target terminal; when the target terminal does not obtain the initial direction of the target terminal provided by the landmark, it can only calculate the relative angle; In the process of taking a step, that is, the angle change α i in the process of the i-th step of the user is calculated by a time integration within the time period t 0 ~ t n , Calculate the position of the user's k+1th step (x k+1 , y k+1 ),
其中,
步骤203:根据目标终端的初始位置和初始方向,结合步长和步频、运动方向,得到室内行走轨迹;Step 203: According to the initial position and initial direction of the target terminal, combined with the step length, step frequency, and motion direction, the indoor walking trajectory is obtained;
通过陀螺仪测得的每跨步角度变化的积分可以确定当前持有目标终端的运动者的行进方向;将得到方向信息、步长结合当前运动者当前步的位置信息(xk,yk),可以定位运动者的下一步位置信息(xk+1,yk+1)。如此即可得到用户在室内行走轨迹;此外,室内行走轨迹采用图片像素值来表示,即(x,y)为室内图片像素值。The integral of the angle change of each step measured by the gyroscope can determine the direction of travel of the athlete currently holding the target terminal; the direction information, step length will be combined with the position information of the current athlete's current step (x k , y k ) , the next step position information (x k+1 , y k+1 ) of the athlete can be located. In this way, the user's indoor walking trajectory can be obtained; in addition, the indoor walking trajectory is represented by the pixel value of the picture, that is, (x, y) is the pixel value of the indoor picture.
其中,利用惯性导航方法计算室内行走轨迹的关键难点在于初始位置与初始方向的确定;当前利用惯性导航方法的初始位置与初始方向是利用建筑物入口处GPS信号消失的位置以及指南针来确定的,然而初始位置与初始方向的精度不高,直接影响后续的定位精度。为了解决此问题,可选取室内兴趣点(楼梯、电梯、门口等)作为初始位置,如此的兴趣点是直接标定在室内地图上,定位精度比较高。此外,当人们出电梯、楼梯、门口时,前进的方向大多数情况下是进与出两个方向,由此对指南针产生的误差进行校准,提高初始方向的精度。Among them, the key difficulty in using the inertial navigation method to calculate the indoor walking trajectory lies in the determination of the initial position and initial direction; the initial position and initial direction of the current inertial navigation method are determined by using the position where the GPS signal disappears at the entrance of the building and the compass. However, the accuracy of the initial position and initial direction is not high, which directly affects the subsequent positioning accuracy. In order to solve this problem, indoor points of interest (stairs, elevators, doorways, etc.) can be selected as the initial position. Such points of interest are directly calibrated on the indoor map, and the positioning accuracy is relatively high. In addition, when people get out of elevators, stairs, and doorways, the direction of travel is mostly in and out, so that the error generated by the compass is calibrated to improve the accuracy of the initial direction.
更进一步的,所述根据目标终端的初始位置和初始方向,结合步长和步频、运动方向,得到室内行走轨迹的步骤203则还可进一步包括:Furthermore, the step 203 of obtaining the indoor walking track according to the initial position and initial direction of the target terminal, combined with the step size, step frequency, and motion direction may further include:
步骤301:根据目标终端的初始位置和初始方向,结合步长和步频、运动方向,得到目标终端每一步的位置信息;Step 301: Obtain the position information of each step of the target terminal according to the initial position and initial direction of the target terminal, combined with step length, step frequency, and motion direction;
步骤302:将目标终端每一步的位置信息与室内地图兴趣点进行匹配;Step 302: Match the location information of each step of the target terminal with the points of interest on the indoor map;
步骤303:将目标终端的匹配得到的每一步的匹配位置信息,实时显示在室内地图上,形成带有每一步的匹配位置信息的室内行走轨迹。Step 303: Display the matching position information of each step obtained through the matching of the target terminal on the indoor map in real time to form an indoor walking track with the matching position information of each step.
利用图片像素值唯一确定室内兴趣点在室内地图的绝对坐标,属于人工标定方式。利用室内广泛存在的兴趣点,将持有目标终端的运动者的行走轨迹与室内地图匹配,实时的将目标终端的当前位置显示在室内地图上。在匹配的过程中,会出现匹配误差,定义为error;定义室内兴趣点(i)的坐标为利用惯性导航方法定位出用户处于兴趣点i的坐标为那么利用欧氏距离来度量匹配误差error,即匹配优化目标是最小化error得到精确地用户室内行走轨迹。error的计算公式如下所示:Using image pixel values to uniquely determine the absolute coordinates of indoor points of interest on indoor maps is a manual calibration method. Using the widely existing points of interest indoors, the walking trajectory of the athlete holding the target terminal is matched with the indoor map, and the current location of the target terminal is displayed on the indoor map in real time. During the matching process, there will be a matching error, which is defined as error; define the coordinates of the indoor interest point (i) as Using the inertial navigation method to locate the coordinates of the user at the point of interest i is Then use the Euclidean distance to measure the matching error error, that is The goal of matching optimization is to minimize the error to obtain the accurate indoor walking trajectory of the user. The calculation formula of error is as follows:
对第i个兴趣点匹配误差为errori,优化目标为:The matching error for the ith interest point is error i , and the optimization objective is:
其中,i=1,2,…,n,n为室内地图兴趣点的数量。Wherein, i=1, 2, . . . , n, n is the number of interest points of the indoor map.
所述的误差优化方法采用遗传算法进行求解,具体可采用以下步骤:The error optimization method adopts genetic algorithm to solve, and specifically the following steps can be adopted:
(1)染色体编码(1) Chromosomal coding
在本方案中,每个兴趣点的匹配误差采用m个基因来表示,即假设在特定的室内空间,两个兴趣点的匹配误差最大值为2m米。m的确定根据室内空间的大小以及两个兴趣点之间的最大距离来确定。如此,染色体的个数就有2m种。In this scheme, the matching error of each interest point is represented by m genes, that is, assuming that in a specific indoor space, the maximum matching error of two interest points is 2 m . The determination of m is determined according to the size of the indoor space and the maximum distance between two interest points. In this way, there are 2 m kinds of chromosomes.
(2)遗传算法参数确定(2) Genetic Algorithm Parameter Determination
·pc=0.7(以这个概率交换2个选择的染色体的部分基因,产生2个后代)· p c = 0.7 (with this probability, some genes of 2 selected chromosomes are exchanged, resulting in 2 offspring)
·pm=0.001(以这个概率随机改变2个后代的基因值)p m = 0.001 (randomly change the gene values of 2 offspring with this probability)
(3)适应度函数确定(3) Fitness function determination
适应度函数即为优化目标:The fitness function is the optimization objective:
较佳的,所述基于共享轨迹的室内寻人方法还包括:Preferably, the indoor person-finding method based on shared trajectories also includes:
获取指定终端的当前位置信息以及室内地图的兴趣点拓扑地图;Obtain the current location information of the specified terminal and the topological map of points of interest in the indoor map;
通过路径规划算法计算从指定终端的当前位置到目标终端当前位置的最短路径;Calculate the shortest path from the current position of the specified terminal to the current position of the target terminal through the path planning algorithm;
将该最短路径返回给指定终端用于导航。Return the shortest path to the specified terminal for navigation.
由于共享的目标终端的室内行走轨迹已经与室内地图进行匹配,基于兴趣点拓扑地图可通过路径规划算法计算从用户B(指定终端)当前位置到用户A(目标终端)当前位置的最短路径。Since the indoor walking trajectory of the shared target terminal has been matched with the indoor map, the shortest path from the current location of user B (designated terminal) to the current location of user A (target terminal) can be calculated through a path planning algorithm based on the topological map of points of interest.
兴趣点拓扑地图构建方法为:首先将室内地图的兴趣点在室内地图中进行标记,赋予像素坐标值,(x,y);每一对兴趣点之间的距离通过惯性导航方法测得;兴趣点拓扑关系如图4a和4b所示。The method for constructing the topological map of POIs is as follows: first, mark the POIs of the indoor map on the indoor map, and assign pixel coordinate values, (x, y); the distance between each pair of POIs is measured by inertial navigation; The point topological relationship is shown in Figures 4a and 4b.
基于用户B的当前位置与用户A的当前位置,运行Dijkstra算法计算最短路径,导航用户B至用户A的位置。Based on the current location of user B and the current location of user A, run the Dijkstra algorithm to calculate the shortest path, and navigate user B to user A's location.
从上述实施例可以看出,本发明提供的基于共享轨迹的室内寻人方法,通过从目标终端获取其实时采集的运动数据,给定初始位置与初始方向,利用惯性导航技术得到持有目标终端的用户A在公共室内空间的行走轨迹并且利用像素值与室内地图进行匹配;再将用户A实时的室内行走轨迹共享给持有指定终端的用户B或更多的其他用户;还可通过获取目标终端同时设置并上传的共享密钥,从而令持有指定终端的用户B利用共享密钥下载用户A的行走轨迹,基于室内兴趣点拓扑地图从当前位置导航至目标点,在保证用户隐私的前提下,大大提高了室内寻人的效率。It can be seen from the above-mentioned embodiments that the indoor person-finding method based on the shared trajectory provided by the present invention obtains the motion data collected in real time from the target terminal, gives the initial position and initial direction, and uses inertial navigation technology to obtain the target terminal. The walking trajectory of user A in the public indoor space is matched with the indoor map using the pixel value; then the real-time indoor walking trajectory of user A is shared with user B holding a designated terminal or more other users; The shared key is set and uploaded by the terminal at the same time, so that user B holding the specified terminal can use the shared key to download the walking track of user A, and navigate from the current position to the target point based on the topological map of indoor points of interest. On the premise of ensuring user privacy This greatly improves the efficiency of indoor tracing.
需要指出的是,本发明实施例中阐述的室内行走轨迹是指在二维平面上的行走轨迹,兴趣点的坐标位置信息也都是限定在二维平面上的位置信息与范围信息。如具有多层建筑物的室内公共空间,应当在不同的高度层面建立多个平面,每个平面内可分别使用本发明阐述的方法进行寻人,不同平面内的轨迹之间、使用者之间均应避免相互干扰。It should be pointed out that the indoor walking track described in the embodiment of the present invention refers to the walking track on a two-dimensional plane, and the coordinate position information of the point of interest is also limited to the position information and range information on the two-dimensional plane. For example, in an indoor public space with a multi-storey building, multiple planes should be established at different height levels, and the method described in the present invention can be used in each plane to trace people, and the traces and users in different planes can be traced. mutual interference should be avoided.
本发明的另一方面,提供了一种基于共享轨迹的室内寻人云端服务器。参照附图5,为本发明提供的基于共享轨迹的室内寻人云端服务器的实施例的结构示例图。Another aspect of the present invention provides a cloud server for indoor person tracing based on shared tracks. Referring to accompanying drawing 5, it is a structural example diagram of an embodiment of an indoor people tracing cloud server based on a shared trajectory provided by the present invention.
如图5所示,所述基于共享轨迹的室内寻人云端服务器400,包括:As shown in Figure 5, the indoor person-finding cloud server 400 based on the shared trajectory includes:
数据获取模块401,用于实时获取目标终端的运动数据;The data acquisition module 401 is used to acquire the motion data of the target terminal in real time;
轨迹模块402,用于根据实时获取的目标终端运动数据,确定该目标终端的室内行走轨迹;The trajectory module 402 is configured to determine the indoor walking trajectory of the target terminal according to the target terminal motion data acquired in real time;
共享模块403,用于向其他终端或指定终端共享该目标终端的室内行走轨迹,供其导航至目标终端的当前位置;The sharing module 403 is used to share the indoor walking track of the target terminal with other terminals or designated terminals, so that they can navigate to the current position of the target terminal;
存档模块404,用于存储实时获取的终端的运动数据及其室内行走轨迹。The archiving module 404 is configured to store the motion data of the terminal acquired in real time and its indoor walking track.
进一步的,获取到的目标终端运动数据利用惯性导航方法计算持有目标终端的运动者的室内行走轨迹,在持有目标终端的运动者的运动过程中,运动者持有的目标终端通过运动传感器按照固定的采样频率f进行运动路径信息采样,其中:从目标终端的运动传感器实时获取的运动数据包括目标终端内置的加速度计的加速度数据,目标终端内置的陀螺仪和指南针的方向数据;Further, the acquired motion data of the target terminal is used to calculate the indoor walking trajectory of the athlete holding the target terminal by using the inertial navigation method. During the movement of the athlete holding the target terminal, the target terminal held by the athlete passes through the motion sensor. The motion path information is sampled according to a fixed sampling frequency f, wherein: the motion data acquired in real time from the motion sensor of the target terminal includes the acceleration data of the built-in accelerometer of the target terminal, and the direction data of the built-in gyroscope and compass of the target terminal;
所述轨迹模块402则还用于根据加速度计的加速度数据计算出目标终端的步长和步频;根据加速度计测量得到的加速度数据确定用户步数,通过低通滤波器去除测量数据中的高频噪声,在运行Kalman滤波算法进行数值去噪;通过波峰波谷检测方法识别出加速度在测量时间范围内的极大值和极小值,并根据相邻的极大极小值,以自适应门限法判别持有目标终端的运动者是否迈步,每当判定持有目标终端的运动者迈出一步,计步器加1,持有目标终端的运动者在测量时间内行进的总步数记为N;自适应门限法能够有效地根据运动者的走步姿势与习惯修正判定为跨步的加速度范围,能在短时间内通过有限的距离得到最适宜特定运动者的跨步判定方式;The trajectory module 402 is also used to calculate the step length and step frequency of the target terminal according to the acceleration data of the accelerometer; determine the user's steps according to the acceleration data measured by the accelerometer, and remove high and low points in the measurement data through a low-pass filter. frequency noise, the Kalman filter algorithm is used for numerical denoising; the peak and valley detection method is used to identify the maximum and minimum values of the acceleration within the measurement time range, and according to the adjacent maximum and minimum values, an adaptive threshold is used method to judge whether the athlete holding the target terminal is taking a step. Whenever it is determined that the athlete holding the target terminal takes a step, the pedometer is incremented by 1, and the total number of steps taken by the athlete holding the target terminal within the measurement time is recorded as N; The adaptive threshold method can effectively modify the acceleration range determined as a stride according to the athlete's walking posture and habits, and can obtain the most suitable stride determination method for a specific athlete through a limited distance in a short time;
利用步长与步频线性关系测定用户步长A,即Ai=a·f(i)+b。其中,i为步数,a、b为运动者的步伐参数,可以通过采样数据的线性回归确定。The step length A of the user is determined by using the linear relationship between the step length and the step frequency, that is, A i =a·f(i)+b. Among them, i is the number of steps, a and b are the step parameters of the athlete, which can be determined by linear regression of sampled data.
所述轨迹模块402还用于根据陀螺仪的方向数据计算出目标终端的运动方向;指南针的作用主要是为惯性导航方法提供初始方向,之后的惯性导航方法定位过程中则利用陀螺仪进行行走方向的估计,因此,初始方向的确定:持有目标终端的运动者在定位的开始阶段,通过获取指南针数据得到用户当前所处的室内环境中的绝对方向(即指南针获取的世界坐标系下的人员朝向),提供基于惯性导航方法的初始方向。持有目标终端的运动者在运动过程中,目标终端(可为任意的便携式智能设备)可通过获取陀螺仪测量的返回值确定运动者在行进过程中的角度变化,并将该角度变化情况与已经获得的持有目标终端的运动者运动的初始方向相叠加,获得目标终端的绝对运动方向;当目标终端未获得有向地标提供的目标终端初始方向时,则只能计算相对角度;在迈出一步的过程中,即t0~tn时间内的一次时间积分计算出用户第i步过程中的角度变化αi,计算可得用户第k+1步的位置(xk+1,yk+1),其中,The trajectory module 402 is also used to calculate the movement direction of the target terminal according to the direction data of the gyroscope; the function of the compass is mainly to provide an initial direction for the inertial navigation method, and the gyroscope is used to determine the walking direction in the positioning process of the inertial navigation method afterwards. Therefore, the determination of the initial direction: the athlete holding the target terminal obtains the absolute direction of the user's current indoor environment by obtaining compass data at the beginning of positioning (that is, the person in the world coordinate system obtained by the compass Heading), which provides an initial orientation based on the inertial navigation method. During the movement of the athlete holding the target terminal, the target terminal (which can be any portable smart device) can determine the angle change of the athlete during the travel process by obtaining the return value measured by the gyroscope, and compare the angle change with the The obtained initial direction of the movement of the athlete holding the target terminal is superimposed to obtain the absolute movement direction of the target terminal; when the target terminal does not obtain the initial direction of the target terminal provided by the landmark, it can only calculate the relative angle; In the process of taking a step, that is, the angle change α i in the process of the i-th step of the user is calculated by a time integration within the time period t 0 ~ t n , The position (x k+1 , y k+1 ) of the user's k+1th step can be obtained by calculation, where,
以及,所述轨迹模块402还用于根据目标终端的初始位置和初始方向,结合步长和步频、运动方向,得到室内行走轨迹;通过陀螺仪测得的每跨步角度变化的积分可以确定当前持有目标终端的运动者的行进方向;将得到方向信息、步长结合当前运动者当前步的位置信息(xk,yk),可以定位运动者的下一步位置信息(xk+1,yk+1)。如此即可得到用户在室内行走轨迹;此外,室内行走轨迹采用图片像素值来表示,即(x,y)为室内图片像素值。And, the track module 402 is also used to obtain the indoor walking track according to the initial position and initial direction of the target terminal in combination with the step length, step frequency, and motion direction; the integral of the angle change of each step measured by the gyroscope can be determined The direction of travel of the athlete currently holding the target terminal; the direction information and step length will be combined with the position information (x k , y k ) of the current athlete’s current step to locate the next position information of the athlete (x k+1 , y k+1 ). In this way, the user's indoor walking trajectory can be obtained; in addition, the indoor walking trajectory is represented by the pixel value of the picture, that is, (x, y) is the pixel value of the indoor picture.
其中,利用惯性导航方法计算室内行走轨迹的关键难点在于初始位置与初始方向的确定;当前利用惯性导航方法的初始位置与初始方向是利用建筑物入口处GPS信号消失的位置以及指南针来确定的,然而初始位置与初始方向的精度不高,直接影响后续的定位精度。为了解决此问题,可选取室内兴趣点(楼梯、电梯、门口等)作为初始位置,如此的兴趣点是直接标定在室内地图上,定位精度比较高。此外,当人们出电梯、楼梯、门口时,前进的方向大多数情况下是进与出两个方向,由此对指南针产生的误差进行校准,提高初始方向的精度。Among them, the key difficulty in using the inertial navigation method to calculate the indoor walking trajectory lies in the determination of the initial position and initial direction; the initial position and initial direction of the current inertial navigation method are determined by using the position where the GPS signal disappears at the entrance of the building and the compass. However, the accuracy of the initial position and initial direction is not high, which directly affects the subsequent positioning accuracy. In order to solve this problem, indoor points of interest (stairs, elevators, doorways, etc.) can be selected as the initial position. Such points of interest are directly calibrated on the indoor map, and the positioning accuracy is relatively high. In addition, when people get out of elevators, stairs, and doorways, the direction of travel is mostly in and out, so that the error generated by the compass is calibrated to improve the accuracy of the initial direction.
更进一步的,所述轨迹模块402还用于根据目标终端的初始位置和初始方向,结合步长和步频、运动方向,得到目标终端每一步的位置信息;将目标终端每一步的位置信息与室内地图兴趣点进行匹配;以及,将目标终端的匹配得到的每一步的匹配位置信息,实时显示在室内地图上,形成带有每一步的匹配位置信息的室内行走轨迹。Furthermore, the trajectory module 402 is also used to obtain the position information of each step of the target terminal according to the initial position and initial direction of the target terminal in combination with the step length, step frequency, and motion direction; and combine the position information of each step of the target terminal with Indoor map interest points are matched; and, the matching position information of each step obtained by the matching of the target terminal is displayed on the indoor map in real time, forming an indoor walking track with the matching position information of each step.
利用图片像素值唯一确定室内兴趣点在室内地图的绝对坐标,属于人工标定方式。利用室内广泛存在的兴趣点,将持有目标终端的运动者的行走轨迹与室内地图匹配,实时的将目标终端的当前位置显示在室内地图上。在匹配的过程中,会出现匹配误差,定义为error;定义室内兴趣点(i)的坐标为利用惯性导航方法定位出用户处于兴趣点i的坐标为那么利用欧氏距离来度量匹配误差error,即匹配优化目标是最小化error得到精确地用户室内行走轨迹。error的计算公式如下所示:Using image pixel values to uniquely determine the absolute coordinates of indoor points of interest on indoor maps is a manual calibration method. Using the widely existing points of interest indoors, the walking trajectory of the athlete holding the target terminal is matched with the indoor map, and the current position of the target terminal is displayed on the indoor map in real time. During the matching process, there will be a matching error, which is defined as error; define the coordinates of the indoor interest point (i) as Using the inertial navigation method to locate the coordinates of the user at the point of interest i is Then use the Euclidean distance to measure the matching error error, that is The goal of matching optimization is to minimize the error to obtain the accurate indoor walking trajectory of the user. The calculation formula of error is as follows:
对第i个兴趣点匹配误差为errori,优化目标为:The matching error for the ith interest point is error i , and the optimization objective is:
其中,i=1,2,…,n,n为室内地图兴趣点的数量。Wherein, i=1, 2, . . . , n, n is the number of interest points of the indoor map.
所述的误差优化方法采用遗传算法进行求解,具体可采用以下步骤:The error optimization method adopts genetic algorithm to solve, and specifically the following steps can be adopted:
(1)染色体编码(1) Chromosomal coding
在本方案中,每个兴趣点的匹配误差采用m个基因来表示,即假设在特定的室内空间,两个兴趣点的匹配误差最大值为2m米。m的确定根据室内空间的大小以及两个兴趣点之间的最大距离来确定。如此,染色体的个数就有2m种。In this scheme, the matching error of each interest point is represented by m genes, that is, assuming that in a specific indoor space, the maximum matching error of two interest points is 2 m . The determination of m is determined according to the size of the indoor space and the maximum distance between two interest points. In this way, there are 2 m kinds of chromosomes.
(2)遗传算法参数确定(2) Genetic Algorithm Parameter Determination
·pc=0.7(以这个概率交换2个选择的染色体的部分基因,产生2个后代)· p c = 0.7 (with this probability, some genes of 2 selected chromosomes are exchanged, resulting in 2 offspring)
·pm=0.001(以这个概率随机改变2个后代的基因值)p m = 0.001 (randomly change the gene values of 2 offspring with this probability)
(3)适应度函数确定(3) Fitness function determination
适应度函数即为优化目标:The fitness function is the optimization objective:
较佳的,所述数据获取模块401还用于获取指定终端的当前位置信息以及室内地图的兴趣点拓扑地图;Preferably, the data acquisition module 401 is also used to acquire the current location information of the specified terminal and the point-of-interest topological map of the indoor map;
所述轨迹模块402则还用于通过路径规划算法计算从指定终端的当前位置到目标终端当前位置的最短路径;所述共享模块403还用于将该最短路径返回给指定终端用于导航。The trajectory module 402 is also used to calculate the shortest path from the current location of the specified terminal to the current location of the target terminal through a path planning algorithm; the sharing module 403 is also used to return the shortest path to the specified terminal for navigation.
由于共享的目标终端的室内行走轨迹已经与室内地图进行匹配,基于兴趣点拓扑地图可通过路径规划算法计算从用户B(指定终端)当前位置到用户A(目标终端)当前位置的最短路径。Since the indoor walking trajectory of the shared target terminal has been matched with the indoor map, the shortest path from the current location of user B (designated terminal) to the current location of user A (target terminal) can be calculated through a path planning algorithm based on the topological map of points of interest.
兴趣点拓扑地图构建方法为:首先将室内地图的兴趣点在室内地图中进行标记,赋予像素坐标值,(x,y);每一对兴趣点之间的距离通过惯性导航方法测得;兴趣点拓扑关系如图4a和4b所示。The method for constructing the topological map of POIs is as follows: first, mark the POIs of the indoor map on the indoor map, and assign pixel coordinate values, (x, y); the distance between each pair of POIs is measured by inertial navigation; The point topological relationship is shown in Figures 4a and 4b.
基于用户B的当前位置与用户A的当前位置,运行Dijkstra算法计算最短路径,导航用户B至用户A的位置。Based on the current location of user B and the current location of user A, run the Dijkstra algorithm to calculate the shortest path, and navigate user B to user A's location.
从上述实施例可以看出,本发明提供的基于共享轨迹的室内寻人云端服务器,通过从目标终端获取其实时采集的运动数据,给定初始位置与初始方向,利用惯性导航技术得到持有目标终端的用户A在公共室内空间的行走轨迹并且利用像素值与室内地图进行匹配;再将用户A实时的室内行走轨迹共享给持有指定终端的用户B或更多的其他用户;还可通过获取目标终端同时设置并上传的共享密钥,从而令持有指定终端的用户B利用共享密钥下载用户A的行走轨迹,基于室内兴趣点拓扑地图从当前位置导航至目标点,在保证用户隐私的前提下,大大提高了室内寻人的效率。It can be seen from the above embodiments that the indoor person tracing cloud server based on shared trajectory provided by the present invention obtains the motion data collected in real time from the target terminal, gives the initial position and initial direction, and uses inertial navigation technology to obtain The walking trajectory of user A of the terminal in the public indoor space is matched with the indoor map using the pixel value; then the real-time indoor walking trajectory of user A is shared with user B holding the specified terminal or more other users; The shared key is set and uploaded by the target terminal at the same time, so that user B holding the specified terminal can use the shared key to download the walking track of user A, and navigate from the current location to the target point based on the indoor point-of-interest topological map, while ensuring user privacy Under the premise, the efficiency of indoor tracing is greatly improved.
所述的云端服务器400,可采用百度云服务器。百度云服务器是一款较为稳定的云端服务器;通过使用百度云,用户之间可以方便快捷的实现数据同步功能,更好的实现用户之间的交互。为了满足更多用户的需求,用户之间可以通过云上传共享自己的路径,也可以下载其他人的路径,找到你想要找的人。The cloud server 400 may be a Baidu cloud server. Baidu cloud server is a relatively stable cloud server; by using Baidu cloud, users can realize data synchronization function conveniently and quickly, and better realize the interaction between users. In order to meet the needs of more users, users can upload and share their own paths through the cloud, or download other people's paths to find the person you are looking for.
本方法实施例可采用Frontia中的数据存储功能。Frontia是百度开放云为开发者提供的基于MBaaS(后端即服务:Backend as a Service)的服务。基于本应用的百度云服务流程包括:申请应用权限,创建工程为test,得到此工程的API Key,创建Bucket,上传数据,存放数据,下载数据。This embodiment of the method can use the data storage function in Frontia. Frontia is an MBaaS (Backend as a Service) service provided by Baidu Open Cloud for developers. The Baidu cloud service process based on this application includes: applying for application permissions, creating a project as test, obtaining the API Key of this project, creating a Bucket, uploading data, storing data, and downloading data.
需要指出的是,本发明中阐述的室内行走轨迹是指在二维平面上的行走轨迹,兴趣点的坐标位置信息也都是限定在二维平面上的位置信息与范围信息。如具有多层建筑物的室内公共空间,应当在不同的高度层面建立多个平面,每个平面内可分别使用本发明阐述的方法进行寻人,不同平面内的轨迹之间、使用者之间均应避免相互干扰。It should be pointed out that the indoor walking track described in the present invention refers to the walking track on a two-dimensional plane, and the coordinate position information of the point of interest is also limited to the position information and range information on the two-dimensional plane. For example, in an indoor public space with a multi-storey building, multiple planes should be established at different height levels, and the method described in the present invention can be used in each plane to trace people, and the traces and users in different planes can be traced. mutual interference should be avoided.
参考附图6,为本发明提供的基于共享轨迹的室内寻人系统的实施例的结构示例图。Referring to FIG. 6 , it is a structural example diagram of an embodiment of an indoor person-finding system based on a shared track provided by the present invention.
所述基于共享轨迹的室内寻人系统,包括至少一个目标终端,至少一个指定终端,以及如上述实施例中所述的云端服务器;The indoor people tracing system based on the shared trajectory includes at least one target terminal, at least one designated terminal, and a cloud server as described in the above-mentioned embodiments;
所述目标终端用于采集自身的运动数据并上传到所述云端服务器;The target terminal is used to collect its own motion data and upload it to the cloud server;
所述指定终端用于从云端服务器接收目标终端的室内行走轨迹并根据该室内行走轨迹导航至目标终端。The specified terminal is used to receive the indoor walking track of the target terminal from the cloud server and navigate to the target terminal according to the indoor walking track.
本发明提供的基于共享轨迹的室内寻人系统的实施例,涉及室内定位技术,该系统包括分别作为目标终端和指定终端的至少两个智能终端、云端服务器、云端服务器中所存储的室内地图。系统的功能是利用用户之间共享的轨迹,实现室内公共场景下用户找到与其共享轨迹的人。方法包括:a)用户A携带目标终端在室内行走,目标终端采集用户的运动数据,上传至云端服务器;b)云端服务器接收到运动数据后,运行基于惯性导航的室内定位方法,得到用户A室内行走轨迹;c)用户A的室内行走轨迹储存在云端服务器,利用云端服务器共享功能共享给指定用户B所携带的制定终端;d)用户B(可选择为输入验证密码后)可以下载用户A的室内行走轨迹,从用户B的当前位置导航至用户A的所在地点。本发明系统可应用于好友发现、位置共享等基于位置的服务中。The embodiment of the indoor people tracing system based on shared trajectory provided by the present invention relates to indoor positioning technology, and the system includes at least two smart terminals as the target terminal and designated terminal respectively, a cloud server, and an indoor map stored in the cloud server. The function of the system is to use the track shared between users to realize the user to find the person who shares the track with him in the indoor public scene. The method includes: a) user A walks indoors with a target terminal, and the target terminal collects the motion data of the user and uploads it to the cloud server; b) after the cloud server receives the motion data, it runs an indoor positioning method based on inertial navigation to obtain user A's indoor positioning method. Walking trajectory; c) User A’s indoor walking trajectory is stored in the cloud server, and shared with the specified terminal carried by the specified user B by using the cloud server sharing function; d) User B (optionally after entering the verification password) can download user A’s Indoor walking trajectory, navigating from user B's current location to user A's location. The system of the invention can be applied to location-based services such as friend discovery and location sharing.
进一步的,所述目标终端包括加速度计、陀螺仪、磁力计,分别用于采集各自内置的运动传感器的读数。Further, the target terminal includes an accelerometer, a gyroscope, and a magnetometer, which are respectively used to collect readings from their built-in motion sensors.
从上述实施例可以看出,本发明提供的基于共享轨迹的室内寻人系统,通过获得用户A的运动数据,利用惯性导航方法计算得到用户A的行走轨迹,并上传至云端与基于兴趣点的拓扑室内地图匹配后共享给其他用户;被共享轨迹的用户B通过下载用户A的轨迹数据,利用路径规划方法从用户B的当前位置导航至用户A的位置,实现室内寻人功能。It can be seen from the above-mentioned embodiments that the indoor people tracing system based on the shared trajectory provided by the present invention obtains the motion data of the user A, calculates the walking trajectory of the user A by using the inertial navigation method, and uploads it to the cloud and the system based on the point of interest. After the topological indoor map is matched, it is shared with other users; the user B whose trajectory is shared downloads the trajectory data of user A, and uses the path planning method to navigate from user B's current location to user A's location to realize the indoor people-finding function.
结合所述基于共享轨迹的室内寻人系统,下面介绍一种基于共享轨迹的室内寻人方法。In combination with the indoor person-finding system based on shared tracks, an indoor person-finding method based on shared tracks is introduced below.
所述基于共享轨迹的室内寻人系统的目的是利用用户之间共享的轨迹,实现室内公共场景下用户找到与其共享轨迹的人。为达到上述目的,所述基于共享轨迹的室内寻人系统的室内寻人方法技术解决方案的步骤包括:The purpose of the indoor person-finding system based on shared tracks is to use shared tracks between users to enable users to find people with whom they share tracks in indoor public scenes. In order to achieve the above-mentioned purpose, the steps of the technical solution of the indoor person-finding method of the indoor person-finding system based on the shared trajectory include:
步骤a):用户A携带目标终端在室内行走,目标终端采集用户的运动数据,上传至云端服务器;Step a): User A walks indoors with the target terminal, and the target terminal collects the user's motion data and uploads it to the cloud server;
步骤b):云端服务器接收到目标终端的运动数据后,运行基于惯性导航的室内定位方法(具体的可采用上述的另一室内寻人方法所提供的方法),得到用户A的室内行走轨迹;Step b): After the cloud server receives the motion data of the target terminal, it runs the indoor positioning method based on inertial navigation (specifically, the method provided by the above-mentioned another indoor person-finding method can be used), and obtains the indoor walking track of user A;
c)用户A的室内行走轨迹储存在云端服务器,利用云端服务器的共享功能共享给指定用户B所携带的指定终端;c) The indoor walking trajectory of user A is stored in the cloud server, and shared with the specified terminal carried by the specified user B by using the sharing function of the cloud server;
d)用户B验证密码后可以下载用户A的室内行走轨迹,从用户B的当前位置利用基于兴趣点的拓扑轨迹导航至用户A的地点。d) User B can download user A's indoor walking trajectory after verifying the password, and navigate from user B's current location to user A's location using the topological trajectory based on points of interest.
所述基于共享轨迹的室内寻人系统的室内寻人方法,适用于任何大型公共室内场景,例如购物中心、火车站、飞机场、图书馆等。目前各大公共室内空间均安装了可无线上网的无线接入点(Access Point,AP),并且免费供用户使用,为目标终端、指定终端与云端服务器通信提供了条件。The indoor person-finding method of the indoor person-finding system based on shared trajectories is applicable to any large-scale public indoor scenes, such as shopping centers, railway stations, airports, libraries, and the like. At present, wireless access points (Access Point, AP) with wireless Internet access are installed in major public indoor spaces, and are free for users to use, providing conditions for target terminals, designated terminals and cloud servers to communicate.
较佳的,步骤a)中的目标终端可采用内置惯性测量单元(IMU),其包括加速度计、陀螺仪、磁力仪,以及无线通信模块,例如Wi-Fi模块。Preferably, the target terminal in step a) can use a built-in inertial measurement unit (IMU), which includes an accelerometer, a gyroscope, a magnetometer, and a wireless communication module, such as a Wi-Fi module.
步骤a)中目标终端采集得到的运动数据包括加速度读数、角速度读数以及磁力数据。The motion data collected by the target terminal in step a) includes acceleration readings, angular velocity readings and magnetic force data.
步骤a)中,为了保证惯性导航的定位精度,用户可尽可能地手持移动终端,以利于提高传感器数据精度。In step a), in order to ensure the positioning accuracy of the inertial navigation, the user can hold the mobile terminal as much as possible, so as to improve the accuracy of sensor data.
步骤b)中所得到的室内行走轨迹通过室内地图图片像素值保存于云端。The indoor walking track obtained in step b) is saved in the cloud through the pixel value of the indoor map picture.
步骤c)中,利用云端服务器的共享功能,可以将用户A的室内行走轨迹共享给除持有指定终端的用户B外的其他指定用户或更多用户。In step c), using the sharing function of the cloud server, the indoor walking track of user A can be shared with other designated users or more users except user B holding a designated terminal.
步骤c)中,可通过设置共享密码,使得只有通过验证的用户才可以下载共享轨迹,增强了隐私安全。In step c), the shared password can be set so that only authenticated users can download the shared track, which enhances privacy and security.
步骤d)中兴趣点为室内的特征点,诸如:门口、转弯点、手扶梯、升降梯、楼梯等。The interest points in step d) are indoor feature points, such as doorways, turning points, escalators, elevators, stairs, and the like.
步骤d)中基于室内地图图片像素值将室内兴趣点进行关联,建立室内拓扑地图。In step d), the indoor point of interest is associated based on the pixel value of the indoor map picture, and an indoor topological map is established.
步骤d)中基于室内拓扑地图,利用Dijkstra算法计算最短路径。In step d), the shortest path is calculated by using the Dijkstra algorithm based on the indoor topological map.
所述室内寻人方法简单易行,可应用于好友发现、位置共享等基于位置的服务中。The indoor person-finding method is simple and feasible, and can be applied to location-based services such as friend discovery and location sharing.
所述的目标终端和指定终端可以是智能手机、平板电脑、笔记本电脑、智能可穿戴设备中的一种或多种;上述云端服务器可以使百度云、google云、阿里云等等。The target terminal and designated terminal can be one or more of smart phones, tablet computers, notebook computers, and smart wearable devices; the above-mentioned cloud server can be Baidu Cloud, Google Cloud, Alibaba Cloud, etc.
所属领域的普通技术人员应当理解:以上所述仅为本发明的具体实施例而已,并不用于限制本发明,凡在本发明的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。Those of ordinary skill in the art should understand that: the above descriptions are only specific embodiments of the present invention, and are not intended to limit the present invention. Any modifications, equivalent replacements, and improvements made within the spirit and principles of the present invention etc., should be included within the protection scope of the present invention.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510366240.8A CN104977003A (en) | 2015-06-29 | 2015-06-29 | Indoor people search method, cloud server, and system based on shared track |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510366240.8A CN104977003A (en) | 2015-06-29 | 2015-06-29 | Indoor people search method, cloud server, and system based on shared track |
Publications (1)
Publication Number | Publication Date |
---|---|
CN104977003A true CN104977003A (en) | 2015-10-14 |
Family
ID=54273742
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510366240.8A Pending CN104977003A (en) | 2015-06-29 | 2015-06-29 | Indoor people search method, cloud server, and system based on shared track |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104977003A (en) |
Cited By (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105241454A (en) * | 2015-10-23 | 2016-01-13 | 中国兵器工业集团第二一四研究所苏州研发中心 | System and method for pedestrian navigation based on multiple sensors |
CN105547301A (en) * | 2016-02-25 | 2016-05-04 | 华南理工大学 | Indoor map construction method and device based on geomagnetism |
CN106840147A (en) * | 2016-12-22 | 2017-06-13 | 武汉船舶通信研究所 | A kind of long range positioning method and system |
CN107292576A (en) * | 2016-04-05 | 2017-10-24 | 中移物联网有限公司 | The virtual management system of equipment |
CN107643081A (en) * | 2016-07-22 | 2018-01-30 | 联想(新加坡)私人有限公司 | Method and electronic installation for companion's device positioning in closing space |
CN107782313A (en) * | 2017-09-26 | 2018-03-09 | 宇龙计算机通信科技(深圳)有限公司 | Indoor navigation method, device, terminal and computer-readable recording medium |
CN107860385A (en) * | 2017-09-20 | 2018-03-30 | 百度在线网络技术(北京)有限公司 | Offer method and device, server apparatus and the computer-readable recording medium of indoor navigation service |
CN108562291A (en) * | 2018-01-30 | 2018-09-21 | 厦门盈趣科技股份有限公司 | Object finding method, device and terminal device |
CN109099904A (en) * | 2018-07-23 | 2018-12-28 | 国网浙江杭州市萧山区供电有限公司 | A kind of indoor equipment method for searching and system based on human body inflexible target |
CN109448417A (en) * | 2018-10-09 | 2019-03-08 | 广州安迪信息技术有限公司 | A kind of parking lot reverse car search navigation system and method based on barcode scanning location technology |
CN109470257A (en) * | 2018-11-14 | 2019-03-15 | 福建工程学院 | A method of guiding lost people based on blockchain technology |
CN111758015A (en) * | 2018-03-02 | 2020-10-09 | 三菱电机株式会社 | Dynamic detection device |
CN114166224A (en) * | 2020-09-11 | 2022-03-11 | 原人股份有限公司 | Indoor traveling track recording system |
CN115950430A (en) * | 2022-12-30 | 2023-04-11 | 广东三鼎实业集团有限公司 | Personnel action track analysis method and system |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101561284A (en) * | 2008-04-17 | 2009-10-21 | 北京灵图软件技术有限公司 | Method, device and system for editing navigation track |
US20110137550A1 (en) * | 2009-12-04 | 2011-06-09 | Samsung Electronics Co., Ltd. | Apparatus and method for generating sketch map information in portable terminal |
CN102905368A (en) * | 2012-10-18 | 2013-01-30 | 无锡儒安科技有限公司 | Mobile auxiliary indoor positioning method and system based on smart phone platform |
CN103175532A (en) * | 2011-12-23 | 2013-06-26 | 宇龙计算机通信科技(深圳)有限公司 | Mobile terminal, server and navigation method based on positioning system |
CN103983266A (en) * | 2014-05-28 | 2014-08-13 | 北京天地方元科技有限公司 | Indoor locating method based on geomagnetic information and indoor locating system based on geomagnetic information |
CN104215238A (en) * | 2014-08-21 | 2014-12-17 | 北京空间飞行器总体设计部 | Indoor positioning method of intelligent mobile phone |
CN104251999A (en) * | 2013-06-27 | 2014-12-31 | 珠海世纪鼎利通信科技股份有限公司 | Indoor positioning equipment and method |
CN104251700A (en) * | 2013-06-27 | 2014-12-31 | 珠海世纪鼎利通信科技股份有限公司 | Method and equipment for automatically describing indoor position |
CN104266658A (en) * | 2014-09-15 | 2015-01-07 | 上海酷远物联网科技有限公司 | Precise-localization-based director guide system and method and data acquisition method |
CN104596508A (en) * | 2015-02-15 | 2015-05-06 | 杭州酷班科技有限公司 | Indoor navigation method based on combination of region location, inertial navigation and map path |
-
2015
- 2015-06-29 CN CN201510366240.8A patent/CN104977003A/en active Pending
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101561284A (en) * | 2008-04-17 | 2009-10-21 | 北京灵图软件技术有限公司 | Method, device and system for editing navigation track |
US20110137550A1 (en) * | 2009-12-04 | 2011-06-09 | Samsung Electronics Co., Ltd. | Apparatus and method for generating sketch map information in portable terminal |
CN103175532A (en) * | 2011-12-23 | 2013-06-26 | 宇龙计算机通信科技(深圳)有限公司 | Mobile terminal, server and navigation method based on positioning system |
CN102905368A (en) * | 2012-10-18 | 2013-01-30 | 无锡儒安科技有限公司 | Mobile auxiliary indoor positioning method and system based on smart phone platform |
CN104251999A (en) * | 2013-06-27 | 2014-12-31 | 珠海世纪鼎利通信科技股份有限公司 | Indoor positioning equipment and method |
CN104251700A (en) * | 2013-06-27 | 2014-12-31 | 珠海世纪鼎利通信科技股份有限公司 | Method and equipment for automatically describing indoor position |
CN103983266A (en) * | 2014-05-28 | 2014-08-13 | 北京天地方元科技有限公司 | Indoor locating method based on geomagnetic information and indoor locating system based on geomagnetic information |
CN104215238A (en) * | 2014-08-21 | 2014-12-17 | 北京空间飞行器总体设计部 | Indoor positioning method of intelligent mobile phone |
CN104266658A (en) * | 2014-09-15 | 2015-01-07 | 上海酷远物联网科技有限公司 | Precise-localization-based director guide system and method and data acquisition method |
CN104596508A (en) * | 2015-02-15 | 2015-05-06 | 杭州酷班科技有限公司 | Indoor navigation method based on combination of region location, inertial navigation and map path |
Cited By (19)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105241454A (en) * | 2015-10-23 | 2016-01-13 | 中国兵器工业集团第二一四研究所苏州研发中心 | System and method for pedestrian navigation based on multiple sensors |
CN105547301A (en) * | 2016-02-25 | 2016-05-04 | 华南理工大学 | Indoor map construction method and device based on geomagnetism |
CN105547301B (en) * | 2016-02-25 | 2018-09-14 | 华南理工大学 | Indoor map construction method based on earth magnetism and device |
CN107292576B (en) * | 2016-04-05 | 2020-12-01 | 中移物联网有限公司 | Virtualization management system for device |
CN107292576A (en) * | 2016-04-05 | 2017-10-24 | 中移物联网有限公司 | The virtual management system of equipment |
CN107643081A (en) * | 2016-07-22 | 2018-01-30 | 联想(新加坡)私人有限公司 | Method and electronic installation for companion's device positioning in closing space |
CN106840147A (en) * | 2016-12-22 | 2017-06-13 | 武汉船舶通信研究所 | A kind of long range positioning method and system |
CN107860385A (en) * | 2017-09-20 | 2018-03-30 | 百度在线网络技术(北京)有限公司 | Offer method and device, server apparatus and the computer-readable recording medium of indoor navigation service |
CN107782313A (en) * | 2017-09-26 | 2018-03-09 | 宇龙计算机通信科技(深圳)有限公司 | Indoor navigation method, device, terminal and computer-readable recording medium |
CN108562291A (en) * | 2018-01-30 | 2018-09-21 | 厦门盈趣科技股份有限公司 | Object finding method, device and terminal device |
CN111758015A (en) * | 2018-03-02 | 2020-10-09 | 三菱电机株式会社 | Dynamic detection device |
CN111758015B (en) * | 2018-03-02 | 2024-02-09 | 三菱电机楼宇解决方案株式会社 | Dynamic detection device and dynamic detection method |
CN109099904A (en) * | 2018-07-23 | 2018-12-28 | 国网浙江杭州市萧山区供电有限公司 | A kind of indoor equipment method for searching and system based on human body inflexible target |
CN109448417A (en) * | 2018-10-09 | 2019-03-08 | 广州安迪信息技术有限公司 | A kind of parking lot reverse car search navigation system and method based on barcode scanning location technology |
CN109470257A (en) * | 2018-11-14 | 2019-03-15 | 福建工程学院 | A method of guiding lost people based on blockchain technology |
CN109470257B (en) * | 2018-11-14 | 2020-12-11 | 福建工程学院 | A method of guiding lost people based on blockchain technology |
CN114166224A (en) * | 2020-09-11 | 2022-03-11 | 原人股份有限公司 | Indoor traveling track recording system |
CN115950430A (en) * | 2022-12-30 | 2023-04-11 | 广东三鼎实业集团有限公司 | Personnel action track analysis method and system |
CN115950430B (en) * | 2022-12-30 | 2023-08-25 | 广东三鼎智慧信息科技有限公司 | Personnel action track analysis method and system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104977003A (en) | Indoor people search method, cloud server, and system based on shared track | |
CN107094319B (en) | High-precision indoor and outdoor fusion positioning system and method | |
US9335175B2 (en) | Crowd-sourcing indoor locations | |
US11582576B2 (en) | Feature-based slam | |
EP3019827B1 (en) | Indoor location-finding using magnetic field anomalies | |
CN104781686B (en) | Pathway matching | |
Kang et al. | SmartPDR: Smartphone-based pedestrian dead reckoning for indoor localization | |
US10466056B2 (en) | Trajectory matching using ambient signals | |
US10415978B2 (en) | Landmark location determination | |
US9292936B2 (en) | Method and apparatus for determining location | |
Lin et al. | Human localization based on inertial sensors and fingerprints in the Industrial Internet of Things | |
CN104378735B (en) | Indoor orientation method, client and server | |
CN106536320B (en) | Connectivity modeling to traffic system | |
CN109470238B (en) | A positioning method, device and mobile terminal | |
CN109164411B (en) | A Person Location Method Based on Multi-data Fusion | |
CN105043380A (en) | Indoor navigation method based on a micro electro mechanical system, WiFi (Wireless Fidelity) positioning and magnetic field matching | |
CN106441302B (en) | Indoor positioning methods in large open areas | |
Gädeke et al. | Smartphone pedestrian navigation by foot-IMU sensor fusion | |
CN103889049A (en) | Wireless signal indoor positioning system and method based on inertia measurement element assistance | |
CN106525031A (en) | Combined indoor positioning method | |
Chen et al. | SoundMark: Accurate indoor localization via peer-assisted dead reckoning | |
WO2015184741A1 (en) | Navigation information acquisition method and device, and mobile terminal | |
Pipelidis et al. | A novel approach for dynamic vertical indoor mapping through crowd-sourced smartphone sensor data | |
Wu et al. | Wireless Indoor Localization | |
Karimi et al. | Pedestrian navigation services: challenges and current trends |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20151014 |