User's trip state judging method, device, electronic equipment and readable storage medium storing program for executing

文档序号:1754585 发布日期:2019-11-29 浏览:23次 中文

阅读说明:本技术 用户出行状态判断方法、装置、电子设备与可读存储介质 (User's trip state judging method, device, electronic equipment and readable storage medium storing program for executing ) 是由 李佳 袁一 曹梦远 于 2019-08-28 设计创作,主要内容包括:本发明提供了一种用户出行状态判断方法、装置、电子设备与可读存储介质,能够基于记步信息与速度信息判断用户是否乘坐可走动的公共交通工具,进而,相较于现有技术,本发明可对所乘坐交通工具的类型(即是否为可走动的公共交通工具)进行细分判断,还可进一步因用户能够在该公共交通工具行走而判断用户在公共交通工具中的身份为乘坐该交通工具的乘客。可见,本发明对出行状态的描述可以更细致具体,从而满足多样的应用需求。(The present invention provides a kind of user trip state judging method, device, electronic equipment and readable storage medium storing program for executing, it can judge whether user takes ambulant public transport based on note step information and velocity information, in turn, compared to the prior art, the present invention can be finely divided judgement to the type (whether being ambulant public transport) to be ridden public transportation means, also further identity of the user in public transport can be judged for the passenger of the seating vehicles due to public transport is walked because of user.As it can be seen that the present invention can be more careful specific to the description of trip state, to meet the application demand of multiplicity.)

The state judging method 1. a kind of user goes on a journey characterized by comprising

The velocity information and the collected note of the mobile terminal for obtaining mobile terminal in real time walk information;

Information is walked according to note of the mobile terminal in a duration, determines the user of the mobile terminal described lasting Whether walking states are in duration;

If the user is in walking states, and speed of the mobile terminal in the duration in the duration Degree information is all larger than threshold speed, then: determining the trip state of the user are as follows: take ambulant public transport, institute Stating ambulant public transport is that the public transport in personnel's walking space, the threshold speed are capable of providing when driving It is greater than and not equal to 0.

2. the method according to claim 1, wherein determining the trip state of the user are as follows: seating can walk about Public transport before, further includes:

Determine that location information of the mobile terminal in the duration and the driving of one of any public transport are believed Manner of breathing matching: the running information includes at least one of: the route information of the public transport, the public transport Table information, the real-time position information of the public transport at the time of tool.

3. the method according to claim 1, wherein determining the trip state of the user are as follows: seating can walk about Public transport after, further includes:

According to the acceleration information of the duration foregoing description mobile terminal, the ambulant public transport is determined Type.

4. the method according to claim 1, wherein being walked according to note of the mobile terminal in a duration Information, determines whether the user of the mobile terminal is in after walking states in the duration, further includes:

If velocity information of the mobile terminal in the duration is all larger than the threshold speed, the user is described It is not in walking states in duration, and in the duration foregoing description user is also not determined to take ambulant Public transport, then:

Determine the trip state of the user are as follows: the vehicles locating for it are driven, or: take not ambulant traffic work Tool;Wherein, personnel's vehicles for walking about space are not provided when the not ambulant vehicles are driving.

5. method according to any one of claims 1 to 4, which is characterized in that the numerical value of the threshold speed is according to road The variation of road jam situation.

6. method according to any one of claims 1 to 4, which is characterized in that according to the mobile terminal when one continues Note in length walks information, determines whether the user of the mobile terminal is in after walking states in the duration, also Include:

If velocity information of the mobile terminal in the duration is all larger than 0, and the user is in the duration Inside it is not in walking states, it is determined that the trip state of the user are as follows: on the vehicles.

7. method according to any one of claims 1 to 4, which is characterized in that according to the mobile terminal when one continues Note in length walks information, determines whether the user of the mobile terminal is in after walking states in the duration, also Include:

If velocity information of the mobile terminal in the duration is respectively less than threshold speed, and the user holds described Walking states are in continuous duration, it is determined that the trip state of the user are as follows: the walking outside the vehicles.

8. method according to any one of claims 1 to 4, which is characterized in that further include: to the trip state of each time into The unified record of row.

9. method according to any one of claims 1 to 4, which is characterized in that the velocity information is the mobile terminal It is determined according to positional information calculation determined by its GPS.

The state judging device 10. a kind of user goes on a journey characterized by comprising

Module is obtained, the collected note of the velocity information and the mobile terminal for obtaining mobile terminal in real time walks information;

Walking states determining module determines the shifting for walking information according to note of the mobile terminal in a duration Whether the user of dynamic terminal is in walking states in the duration;

It can walk about and take module, if being in walking states, and the mobile terminal in the duration for the user Velocity information in the duration is all larger than threshold speed, then: determining the trip state of the user are as follows: seating can be walked Dynamic public transport, the ambulant public transport are that the public friendship in personnel's walking space is capable of providing when driving Logical tool, the threshold speed are greater than and not equal to 0.

11. a kind of electronic equipment, which is characterized in that including memory and processor,

The memory is used for store code;

The processor, for executing the code in the memory to realize the described in any item sides of claim 1 to 9 Method.

12. a kind of readable storage medium storing program for executing, is stored thereon with program, which is characterized in that realize power when the program is executed by processor Benefit requires 1 to 9 described in any item methods.

Technical field

The present invention relates to electronic equipment more particularly to a kind of user go on a journey state judging method, device, electronic equipment with can Read storage medium.

Background technique

Electronic equipment, it will be appreciated that be the equipment configured with processor and memory, in turn, the readable access to memory of processor Data execute corresponding function.Electronic equipment can for example convenient for the portable mobile terminal of user, mobile terminal can such as mobile phone, Tablet computer, intelligent wearable device etc..

Existing electronic equipment can calculate the note step information of user according to the detection data of sensor in the related technology, may be used also The motion information of electronic equipment, such as displacement, the speed, acceleration etc. of electronic equipment movement are calculated according to equipment such as GPS.Into And it can judge that user is walking still by bus by motion information and note step information.

However, trip state may be multiplicity, and existing the relevant technologies can not be effectively to its institute in user's trip The type to ride public transportation means and its locating role (e.g. passenger or driver) is finely divided in a vehicle Judgement.

Summary of the invention

The present invention provides a kind of user and goes on a journey state judging method, device, electronic equipment and readable storage medium storing program for executing, to solve Can not to the type that user is ridden public transportation means and its locating role is finely divided judgement in a vehicle the problem of.

According to the first aspect of the invention, a kind of user's trip state judging method is provided, comprising:

The velocity information and the collected note of the mobile terminal for obtaining mobile terminal in real time walk information;

Information is walked according to note of the mobile terminal in a duration, determines the user of the mobile terminal described Whether walking states are in duration;

If the user is in walking states in the duration, and the mobile terminal is in the duration Velocity information be all larger than threshold speed, then: determining the trip state of the user are as follows: take ambulant public transport work Tool, the ambulant public transport are that the public transport in personnel's walking space, the speed are capable of providing when driving Degree threshold value is greater than and not equal to 0.

Optionally, the trip state of the user is determined are as follows: before taking ambulant public transport, further includes:

Determine the row of location information of the mobile terminal in the duration and one of any public transport Vehicle information matches: the running information includes at least one of: the route information of the public transport, described public Table information, the real-time position information of the public transport at the time of vehicles.

Optionally, the trip state of the user is determined are as follows: after taking ambulant public transport, further includes:

According to the acceleration information of the duration foregoing description mobile terminal, the ambulant public transport is determined The type of tool.

Optionally, the note according to the mobile terminal in a duration walks information, determines the use of the mobile terminal Whether family is in the duration after walking states, further includes:

If velocity information of the mobile terminal in the duration is all larger than the threshold speed, the user exists It is not in walking states in the duration, and is also not determined to take to walk in the duration foregoing description user Dynamic public transport, then:

Determine the trip state of the user are as follows: the vehicles locating for it are driven, or: take not ambulant traffic Tool;Wherein, personnel's vehicles for walking about space are not provided when the not ambulant vehicles are driving.

Optionally, the numerical value of the threshold speed is changed according to congestion in road situation.

Optionally, the note according to the mobile terminal in a duration walks information, determines the use of the mobile terminal Whether family is in the duration after walking states, further includes:

If velocity information of the mobile terminal in the duration is all larger than 0, and the user is described lasting Walking states are not in duration, it is determined that the trip state of the user are as follows: on the vehicles.

Optionally, the note according to the mobile terminal in a duration walks information, determines the use of the mobile terminal Whether family is in the duration after walking states, further includes:

If velocity information of the mobile terminal in the duration is respectively less than threshold speed, and the user is in institute It states in duration in walking states, it is determined that the trip state of the user are as follows: the walking outside the vehicles.

Optionally, the method, further includes: unified record is carried out to the trip state of each time.

Optionally, the velocity information is that mobile terminal positional information calculation according to determined by its GPS determines.

According to the second aspect of the invention, a kind of user's trip state judging device is provided, comprising:

Module is obtained, the collected note step of the velocity information and the mobile terminal for obtaining mobile terminal in real time Information;

Walking states determining module determines institute for walking information according to note of the mobile terminal in a duration Whether the user for stating mobile terminal is in walking states in the duration;

It can walk about and take module, if being in walking states, and the movement in the duration for the user Velocity information of the terminal in the duration is all larger than threshold speed, then: determining the trip state of the user are as follows: takes Ambulant public transport, the ambulant public transport are that the public affairs in personnel's walking space are capable of providing when driving The vehicles altogether, the threshold speed are greater than and not equal to 0.

According to the third aspect of the invention we, a kind of electronic equipment, including memory and processor, the storage are provided Device is used for store code;

The processor, for executing the code in the memory to realize that first aspect and its optinal plan are related to Method.

According to the fourth aspect of the invention, a kind of readable storage medium storing program for executing is provided, program is stored thereon with, which is located Reason device realizes the method that first aspect and its optinal plan are related to when executing.

User's trip state judging method, device, electronic equipment and readable storage medium storing program for executing provided by the invention, can be based on Note step information and velocity information judge whether user takes ambulant public transport, in turn, compared to the prior art, this Invention can be finely divided judgement to the type (whether being ambulant public transport) to be ridden public transportation means, can also be into One step can judge identity of the user in public transport for the seating friendship because of user due to the public transport is walked The passenger of logical tool.As it can be seen that the present invention can be more careful specific to the description of trip state, to meet the application need of multiplicity It asks.

Detailed description of the invention

In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention without any creative labor, may be used also for those of ordinary skill in the art To obtain other drawings based on these drawings.

Fig. 1 is the flow diagram one of user's trip state judging method in one embodiment of the invention;

Fig. 2 is the flow diagram two of user's trip state judging method in one embodiment of the invention;

Fig. 3 is the flow diagram three of user's trip state judging method in one embodiment of the invention;

Fig. 4 is the flow diagram four of user's trip state judging method in one embodiment of the invention;

Fig. 5 is the program module schematic diagram one of user's trip state judging device in one embodiment of the invention;

Fig. 6 is the program module schematic diagram two of user's trip state judging device in one embodiment of the invention;

Fig. 7 is the organigram of electronic equipment in one embodiment of the invention.

Specific embodiment

Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall within the protection scope of the present invention.

17页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:单发次X射线时间演化过程测量系统及方法

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类