CN109493447B - Method and device for starting driving record, computer equipment and storage medium - Google Patents

Method and device for starting driving record, computer equipment and storage medium Download PDF

Info

Publication number
CN109493447B
CN109493447B CN201811118144.1A CN201811118144A CN109493447B CN 109493447 B CN109493447 B CN 109493447B CN 201811118144 A CN201811118144 A CN 201811118144A CN 109493447 B CN109493447 B CN 109493447B
Authority
CN
China
Prior art keywords
terminal
positioning
starting
positioning data
data
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
Application number
CN201811118144.1A
Other languages
Chinese (zh)
Other versions
CN109493447A (en
Inventor
许世勋
成潜
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Property and Casualty Insurance Company of China Ltd
Original Assignee
Ping An Property and Casualty Insurance Company of China Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An Property and Casualty Insurance Company of China Ltd filed Critical Ping An Property and Casualty Insurance Company of China Ltd
Priority to CN201811118144.1A priority Critical patent/CN109493447B/en
Publication of CN109493447A publication Critical patent/CN109493447A/en
Application granted granted Critical
Publication of CN109493447B publication Critical patent/CN109493447B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C5/00Registering or indicating the working of vehicles
    • G07C5/08Registering or indicating performance data other than driving, working, idle, or waiting time, with or without registering driving, working, idle or waiting time
    • G07C5/0841Registering performance data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/021Services related to particular areas, e.g. point of interest [POI] services, venue services or geofences
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/029Location-based management or tracking services

Abstract

The application relates to a method and a device for starting driving record based on data analysis, computer equipment and a storage medium. The method comprises the following steps: acquiring current position information of a terminal; defining an initial fence area according to the current position information; when the terminal is detected to move from the inside of the starting fence area to the outside of the starting fence area, starting a positioning callback mode, and judging the motion state of the terminal; when the motion state of the terminal is detected to be the driving state, the motion trail of the terminal is recorded, and the method does not need a user to manually trigger the recording operation of the stroke, so that the timeliness of the stroke recording is improved, and the omission of the stroke recording is avoided.

Description

Method and device for starting driving record, computer equipment and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method and an apparatus for starting driving record, a computer device, and a storage medium.
Background
With the development of computer technology, the application of mobile phone software is also more and more widely applied to various fields of life. In the conventional technology, when a driving journey needs to be recorded, a user is often required to actively start a preset application to start a recording event of the driving journey, and the started preset application starts a gps (global Positioning system) to record a driving track of the user. And if the user does not actively trigger the travel record project of the preset application, the travel record of the user cannot be recorded. The method for recording the travel is heavily dependent on the habit of using a mobile phone when a user drives the automobile, and the travel is easily missed.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a method, an apparatus, a computer device and a storage medium for starting driving record, which can intelligently start driving record to avoid missed driving record.
A method of initiating a driving recording, the method comprising:
acquiring current position information of a terminal;
defining an initial fence area according to the current position information;
when the terminal is detected to move from the inside of the starting fence area to the outside of the starting fence area, starting a positioning callback mode, and judging the motion state of the terminal;
and when the motion state of the terminal is detected to be a driving state, recording the motion trail of the terminal.
In one embodiment, the determining the motion state of the terminal includes: acquiring positioning data recalled by the terminal; acquiring speed values of a preset number of positioning points from the callback positioning data; and when the locating point with the speed value reaching the preset speed threshold value reaches the preset quantity threshold value, judging that the motion state of the terminal is a driving state.
In one embodiment, the method further comprises: and when the speed value of the positioning point does not reach the preset speed threshold value, emptying the data of the positioning point of which the speed value does not reach the preset speed threshold value.
In one embodiment, before determining the motion state of the terminal, the method further includes: acquiring a sensor state code returned by the terminal; when the sensor state code indicates that the terminal is in a non-driving state, starting a positioning callback mode; and stopping positioning detection when the sensor state code indicates that the terminal is in a driving state.
In one embodiment, the method further comprises: the positioning callback mode recalls positioning data of the terminal, and the motion state of the terminal is judged through the positioning data; when data of a coprocessor of the terminal are successfully acquired, the positioning data are high-precision positioning data of the coprocessor and the terminal; and when the data of the coprocessor of the terminal is not successfully acquired, the positioning data is high-precision positioning data of the terminal.
In one embodiment, after recording the motion track of the terminal, the method further includes: when the motion state of the terminal is detected to be a non-driving state, acquiring positioning data of a stop position of the terminal; and using the position where the terminal stops as the center of a circle and using a preset numerical value as a radius to define a corresponding area as an end fence area.
An apparatus for initiating a driving recording, the apparatus comprising:
the positioning data acquisition module is used for acquiring the current position information of the terminal;
the area dividing module is used for dividing a starting fence area according to the current position information;
the recording starting module is used for starting a positioning callback mode to judge the motion state of the terminal when detecting that the terminal moves from the inside of the starting fence area to the outside of the starting fence area; and when the motion state of the terminal is detected to be a driving state, recording the motion trail of the terminal.
A computer device comprising a memory and a processor, the memory storing a computer program, the processor implementing the following steps when executing the computer program:
acquiring current position information of a terminal;
defining an initial fence area according to the current position information;
when the terminal is detected to move from the inside of the starting fence area to the outside of the starting fence area, starting a positioning callback mode, and judging the motion state of the terminal;
and when the motion state of the terminal is detected to be a driving state, recording the motion trail of the terminal.
A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, carries out the steps of:
acquiring current position information of a terminal;
defining an initial fence area according to the current position information;
when the terminal is detected to move from the inside of the starting fence area to the outside of the starting fence area, starting a positioning callback mode, and judging the motion state of the terminal;
and when the motion state of the terminal is detected to be a driving state, recording the motion trail of the terminal.
According to the method, the device, the computer equipment and the storage medium for starting the driving record, the preset application acquires the current position information of the terminal and demarcates the starting fence area, when the situation that the terminal moves from the inside of the starting fence area to the outside of the starting fence area is detected, the preset application can start the positioning callback mode to judge the motion state of the terminal, when the motion state of the terminal is judged to be the driving state according to the positioning data of the terminal, the motion track of the recording terminal is started, the recording operation of the stroke is not required to be manually triggered by a user, the timeliness of the stroke record is improved, and the omission of the stroke is avoided.
Drawings
FIG. 1 is a diagram illustrating an exemplary implementation of a method for initiating driving records;
FIG. 2 is a flow diagram illustrating a method for initiating driving records according to one embodiment;
FIG. 3 is a flowchart illustrating steps prior to determining a motion state of a terminal in one embodiment;
FIG. 4 is a flowchart illustrating a method for initiating driving records according to another embodiment;
FIG. 5 is a flowchart illustrating an overall method for starting driving record according to an embodiment;
FIG. 6 is a flowchart illustrating a process of determining a motion status of a terminal according to positioning data according to an embodiment;
FIG. 7 is a block diagram of an apparatus for initiating a driving record in one embodiment;
FIG. 8 is a block diagram showing the structure of an apparatus for starting driving record in another embodiment;
FIG. 9 is a diagram illustrating an internal structure of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The method for starting the driving record can be applied to the application environment shown in fig. 1. Wherein the terminal 110 communicates with the server 120 through a network. The preset application may be installed on the terminal 110 or may be located in the server 120. When the preset application is installed on the terminal 110, the preset application may obtain the current location information of the terminal through permission setting, and when the preset application is located on the server 120, the preset application may obtain the current location information of the terminal through a network, so as to further determine the motion state of the terminal. The terminal 110 may be, but not limited to, various personal computers, notebook computers, smart phones, tablet computers, and portable wearable devices, and the server 120 may be implemented by an independent server or a server cluster formed by a plurality of servers.
In one embodiment, as shown in fig. 2, a method for starting driving record is provided, which is described by taking the method as an example applied to the server in fig. 1, and includes the following steps:
step 202, obtaining the current position information of the terminal.
And step 204, defining a starting fence area according to the current position information.
And step 206, when the terminal is detected to move from the inside of the starting fence area to the outside of the starting fence area, starting a positioning callback mode, and judging the motion state of the terminal.
And step 208, recording the motion trail of the terminal when the motion state of the terminal is detected to be the driving state.
The current position information of the terminal refers to the position information of the terminal acquired by a positioning device arranged on the terminal. The positioning device can be a GPS positioner, a sensing device and the like. The terminal is provided with a preset application, and when the preset application is opened, the preset application can acquire the current position information of the terminal through permission setting. After the preset application obtains the current position information of the terminal, the starting fence area can be defined according to the current position information of the terminal. The starting fence area is an area with a radius R defined by taking the current position of the terminal as a circle center according to the current position of the terminal, and the radius R can be set in a self-defining manner. After the starting fence area is defined, the trace of the terminal can be judged according to whether the terminal enters or exits the starting fence area. The operating system of the terminal can be iOS (mobile operating system developed by apple inc.), and the operating system of the terminal can automatically detect whether the terminal enters or exits the fence area. When the operating system of the terminal detects that the terminal moves from the inside of the starting fence area to the outside of the starting fence area, the preset application can acquire a return value returned by the terminal, and can know that the terminal has moved outside the starting fence area according to the return value. Therefore, when it is detected that the terminal moves outside the starting fence area, the preset application can start a positioning callback mode, that is, the preset application can initiate a positioning request to the terminal, and the terminal can continuously return the instant positioning data of the terminal to the preset application according to the positioning request. The preset application can judge the motion state of the terminal according to the instant positioning data of the terminal.
In one embodiment, the determining the motion state of the terminal includes: acquiring positioning data recalled by a terminal; acquiring speed values of a preset number of positioning points from the recalled positioning data; and when the locating point with the speed value reaching the preset speed threshold value reaches the preset quantity threshold value, judging that the motion state of the terminal is the driving state.
And starting a positioning callback mode in the preset application, and judging the motion state of the terminal according to the speed value in the positioning data recalled by the terminal when judging the motion state of the terminal according to the instant positioning data of the terminal. The acquired positioning data recalled by the terminal can be from positioning equipment or sensor equipment of a terminal operating system, a preset number of positioning points can be taken from the positioning data after the positioning data recalled by the terminal is acquired, and a speed value of each positioning point is acquired. When the terminal is in a driving state, the speed of the anchor point may be different from that when the terminal is in a non-driving state. The speed of the positioning point in the driving state will be higher than the speed of the positioning in the non-driving state. Assuming that the preset number threshold is Y1, when the number of anchor points whose speed values reach the preset speed threshold reaches Y1, it may be determined that the current motion state of the terminal is a driving state. If the number of the positioning points with the speed values reaching the preset speed threshold value does not reach Y1, the motion state of the terminal can be judged to be a non-driving state.
In one embodiment, the method further comprises: the positioning callback mode recalls positioning data of the terminal, and the motion state of the terminal is judged through the positioning data; when the data of the coprocessor of the terminal is successfully acquired, the positioning data is high-precision positioning data of the coprocessor and the terminal; and when the data of the coprocessor of the terminal is not successfully acquired, the positioning data is high-precision positioning data of the terminal.
When the preset application starts a positioning callback mode and positioning data returned by the terminal is acquired to judge the motion state of the terminal, the motion state of the terminal can be judged through data of a coprocessor of the terminal and/or high-precision positioning data of the terminal. The coprocessor of the terminal can rapidly process data collected by various sensors under the condition that a main CPU of the terminal is in a dormant state, and the coprocessor data of the terminal can be considered as the sensor data of the terminal. The high-precision positioning data of the terminal means that the obtained proximity between the position information (usually coordinates) of the terminal in the space entity and the real position of the terminal is high. The high-precision positioning data can be acquired by a positioning system on the terminal, such as a GPS positioning system on the terminal. The high-precision positioning data of the terminal can be acquired under normal conditions no matter whether the data of the coprocessor of the terminal can be acquired or not. Therefore, when the terminal is not provided with the coprocessor, the preset application can acquire the high-precision positioning data of the terminal when the preset application cannot normally acquire the data of the coprocessor of the terminal due to other reasons, and the motion state of the terminal is judged through the high-precision positioning data of the terminal. If the preset application can acquire the data of the coprocessor of the terminal, the motion state of the terminal can be judged by using the data of the coprocessor of the terminal and the high-precision positioning data of the terminal. Therefore, the accuracy of judging the motion state of the terminal can be higher.
The high-precision positioning data of the terminal is more accurate compared with the data of the coprocessor. Therefore, when the data of the coprocessor of the terminal and the high-precision positioning data of the terminal are used for judging the motion state of the terminal at the same time, if the judgment result of the motion state of the terminal by the data of the coprocessor and the high-precision data of the terminal is inconsistent, the judgment result of the high-precision data of the terminal can be used as the judgment result of the motion state of the terminal. Through the two modes, the vulnerability that the motion state of the terminal cannot be accurately judged due to the fact that the positioning data cannot be acquired is effectively avoided, and the accuracy of judging the motion state of the terminal is ensured.
According to the method for starting the driving record, the preset application acquires the current position information of the terminal and demarcates the starting fence area, when the terminal is detected to move from the inside of the starting fence area to the outside of the starting fence area, the preset application can start the positioning callback mode to judge the motion state of the terminal, when the motion state of the terminal is judged to be the driving state according to the positioning data of the terminal, the motion track of the terminal is started to be recorded, the recording operation of the stroke is not required to be manually triggered by a user, the timeliness of the stroke record is improved, and the omission of the stroke is avoided.
In one embodiment, the method further comprises: and when the speed value of the positioning point does not reach the preset speed threshold value, emptying the data of the positioning point of which the speed value does not reach the preset speed threshold value.
When the speed value of the positioning point does not reach the preset speed threshold value in the positioning data, the speed value of the positioning point is not consistent with the preset speed threshold value, the positioning point is not consistent with the track point judged to be in the driving state, and the data of the positioning point of which the speed value does not reach the preset speed threshold value can be removed. Therefore, the detection of the motion state of the terminal can be restarted immediately according to the judgment result, and the accuracy of the detection of the motion state of the terminal is improved.
In one embodiment, as shown in fig. 3, before determining the motion state of the terminal, the method further includes:
step 302, obtaining a sensor status code returned by the terminal.
And step 304, when the sensor status code indicates that the terminal is in a non-driving state, starting a positioning callback mode.
And step 306, stopping positioning detection when the sensor state code indicates that the terminal is in a driving state.
The sensor state code can be obtained through an operating system of the terminal, and after a user opens a preset application installed on the terminal, the operating system of the terminal returns a sensor state code to the preset application. The preset application can know whether the current terminal is in a driving state or not according to the sensor state code. When the sensor state code indicates that the terminal is in a driving state, the motion state of the terminal does not need to be detected by acquiring the positioning data of the terminal, so that the positioning detection of the terminal can be stopped. The other situation is that the user can actively start the preset application to start the travel record operation, and then the sensor state code received by the preset application also indicates that the terminal is in the driving state, and the positioning detection can be stopped at this time.
In one embodiment, after recording the motion track of the terminal, the method further includes: when the motion state of the terminal is detected to be a non-driving state, acquiring positioning data of a stop position of the terminal; and using the position where the terminal stops as the center of a circle and using a preset numerical value as a radius to define a corresponding area as an ending fence area.
When the motion state of the terminal is detected to be switched from a driving state to a non-driving state, the positioning data of the stop position of the terminal can be acquired, the fence ending area can be defined according to the positioning data of the stop position, and the travel route of the terminal can be determined according to the starting fence area and the fence ending area of the terminal. The stop position of the terminal can be obtained, a circle is drawn by taking a preset value R as a radius to perform area division, and the divided area is an end fence area.
In one embodiment, as shown in fig. 4, a method for starting driving record is provided, which is described by taking the method as an example applied to the server in fig. 1, and includes the following steps:
step 402, obtaining the current position information of the terminal.
And step 404, defining a starting fence area according to the current position information.
In step 406, when it is detected that the terminal moves from the inside of the starting fence area to the outside of the starting fence area, a positioning callback mode is started.
The terminal is provided with a preset application, and when the preset application is opened, the preset application can acquire the current position information of the terminal through permission setting. After the preset application obtains the current position information of the terminal, the starting fence area can be defined according to the current position information of the terminal. After the starting fence area is defined, the track of the terminal can be judged according to whether the terminal enters or exits the starting fence area. When the operating system of the terminal detects that the terminal moves out of the starting fence area, the preset application can acquire a return value returned by the terminal, and can know that the terminal has moved out of the starting fence area according to the return value. Therefore, when it is detected that the terminal moves outside the starting fence area, the preset application can start a positioning callback mode, that is, the preset application can initiate a positioning request to the terminal, and the terminal can continuously return the instant positioning data of the terminal to the preset application according to the positioning request. The preset application can judge the motion state of the terminal according to the instant positioning data of the terminal.
As shown in fig. 5, when it is determined that the terminal has moved outside the starting fence area, it needs to be determined that the application is in a keep-alive state, that is, the preset application can run in the background all the time and is in a running state, and meanwhile, it is also determined that the sensor status code returned by the terminal is obtained, so as to determine whether the current motion state of the terminal is a driving state. And if the sensor state code indicates that the terminal is in a non-driving state, starting a positioning callback mode, and further acquiring callback positioning data to detect and determine the motion state of the terminal. And if the sensor state code indicates that the terminal is in a driving state, stopping positioning detection, and detecting the motion state of the terminal without acquiring positioning data. When callback data of the terminal is acquired and data of a coprocessor of the terminal is successfully acquired, judging the motion state of the terminal by using the high-precision positioning data of the coprocessor and the terminal; and when the data of the coprocessor of the terminal is not successfully acquired, starting high-precision positioning data of the terminal to judge the motion state of the terminal.
When the positioning callback mode is started, the terminal can continuously return positioning data to the preset application, a timer is additionally arranged at the position, and the timer is used for setting the starting time of the callback mode. That is to say, the preset application may obtain the positioning data of the terminal within the X time, and no matter how the positioning data of the terminal within the X time is, the motion state of the terminal may be determined according to the positioning data within the X time. When the time reaches X, the positioning callback mode stops, and the preset application cannot receive positioning data returned by the terminal any more. When the terminal is determined to be in the driving state according to the callback data, the positioning callback can be stopped, namely the timer is stopped, and the conclusion that the motion state of the terminal is the driving state can be obtained. And if the terminal is determined to be in the non-driving state according to the callback data and the time of the timer does not reach X seconds, continuously acquiring the positioning data to judge the motion state of the terminal. And if the terminal is determined to be in the non-driving state according to the callback data and the time of the timer reaches X seconds, stopping obtaining the positioning data, and directly obtaining that the driving state of the terminal is the non-driving state. And when the speed value of the positioning point does not reach the preset speed threshold value, emptying the data of the positioning point of which the speed value does not reach the preset speed threshold value.
And step 408, acquiring positioning data called back by the terminal.
Step 410, obtaining the speed values of the positioning points with the preset number from the positioning data of the call-back.
In step 412, when the anchor point with the speed value reaching the preset speed threshold reaches the preset number threshold, it is determined that the motion state of the terminal is the driving state.
And step 414, recording the motion trail of the terminal when the motion state of the terminal is detected to be the driving state.
After the positioning data recalled from the terminal is obtained, a preset number of positioning points can be taken from the positioning data, and the speed value of each positioning point is obtained. When the terminal is in a driving state, the speed of the anchor point may be different from that when the terminal is in a non-driving state. The speed of the positioning point in the driving state will be higher than the speed of the positioning in the non-driving state. Assuming that the preset number threshold is Y1, when the number of anchor points whose speed values reach the preset speed threshold reaches Y1, it may be determined that the current motion state of the terminal is a driving state. If the number of the positioning points with the speed values reaching the preset speed threshold value does not reach Y1, the motion state of the terminal can be judged to be a non-driving state.
As shown in fig. 6, when the preset application starts the positioning callback mode and acquires the positioning data returned by the terminal to determine the motion state of the terminal, the motion state of the terminal may be determined by the data of the co-processor of the terminal and/or the high-precision positioning data of the terminal. The high-precision positioning data of the terminal can be acquired under normal conditions no matter whether the data of the coprocessor of the terminal can be acquired or not. Therefore, when the terminal is not provided with the coprocessor, the preset application can acquire the high-precision positioning data of the terminal when the preset application cannot normally acquire the data of the coprocessor of the terminal due to other reasons, and the motion state of the terminal is judged through the high-precision positioning data of the terminal. If the preset application can acquire the data of the coprocessor of the terminal, the motion state of the terminal can be judged by using the data of the coprocessor of the terminal and the high-precision positioning data of the terminal. In the judgment, when the speed value of the positioning point reaches the preset speed threshold value, the driving state is added by 1, and when the number of the positioning points reaching the preset speed threshold value reaches the preset numerical value N1, the movement state of the terminal can be judged to be the driving state.
Step 416, acquiring instant positioning data of the terminal, and acquiring positioning data of a stop position of the terminal when detecting that the motion state of the terminal is a non-driving state;
and 418, defining an ending fence area according to the positioning data of the terminal stop position.
When the motion state of the terminal is detected to be switched from a driving state to a non-driving state, the positioning data of the stop position of the terminal can be acquired, the fence ending area can be defined according to the positioning data of the stop position, and the travel route of the terminal can be determined according to the starting fence area and the fence ending area of the terminal.
The preset application can start the positioning callback mode when detecting that the terminal moves out of the initial fence area by acquiring the current position information of the terminal and demarcating the initial fence area, so as to judge the motion state of the terminal, and when judging that the motion state of the terminal is the driving state according to the positioning data of the terminal, the preset application starts the motion track of the recording terminal, so that the recording operation of the stroke is not required to be manually triggered by a user, the timeliness of the stroke recording is improved, and the omission of the stroke recording is avoided.
It should be understood that although the various steps in the flow charts of fig. 2-6 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 2-6 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performance of the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternating with other steps or at least some of the sub-steps or stages of other steps.
In one embodiment, as shown in fig. 7, there is provided an apparatus for starting driving recording, including: the device comprises a positioning data acquisition module, an area demarcation module and a record starting module, wherein:
a positioning data obtaining module 702, configured to obtain current position information of the terminal.
And an area defining module 704, configured to define the starting fence area according to the current location information.
A record starting module 706, configured to start a location callback mode when it is detected that the terminal moves from inside the starting fence area to outside the starting fence area, and determine a motion state of the terminal; and when the motion state of the terminal is detected to be the driving state, recording the motion trail of the terminal.
In an embodiment, the record starting module 706 is further configured to obtain location data recalled by the terminal; acquiring speed values of a preset number of positioning points from the callback positioning data; and when the locating point with the speed value reaching the preset speed threshold value reaches the preset quantity threshold value, judging that the motion state of the terminal is a driving state.
In an embodiment, the apparatus further includes a data clearing module, configured to clear data of the positioning point whose speed value does not reach the preset speed threshold when there is a speed value of the positioning point that does not reach the preset speed threshold.
In an embodiment, as shown in fig. 8, the apparatus further includes an initial state determining module 708, configured to obtain a sensor state code returned by the terminal; when the sensor state code indicates that the terminal is in a non-driving state, starting a positioning callback mode; and stopping the positioning detection when the sensor state code indicates that the terminal is in the driving state.
In one embodiment, the positioning callback mode recalls positioning data of the terminal, and the motion state of the terminal is judged through the positioning data; when the data of the coprocessor of the terminal is successfully acquired, the positioning data is high-precision positioning data of the coprocessor and the terminal; and when the data of the coprocessor of the terminal is not successfully acquired, the positioning data is high-precision positioning data of the terminal.
In one embodiment, the area demarcating module 704 is further configured to obtain the positioning data of the stop position of the terminal when the motion state of the terminal is detected as the non-driving state; and using the position where the terminal stops as the center of a circle and using a preset numerical value as a radius to define a corresponding area as an ending fence area.
For specific limitations of the device for starting the driving record, reference may be made to the above limitations of the method for starting the driving record, and details are not described herein again. All or part of the modules in the device for starting the driving record can be realized by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as shown in fig. 9. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The database of the computer device is used for storing the data of the driving record. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a method of initiating a driving recording.
Those skilled in the art will appreciate that the architecture shown in fig. 9 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, there is provided a computer device comprising a memory storing a computer program and a processor implementing the following steps when the processor executes the computer program: acquiring current position information of a terminal; defining a starting fence area according to the current position information; when the terminal is detected to move from the inside of the starting fence area to the outside of the starting fence area, starting a positioning callback mode, and judging the motion state of the terminal; and when the motion state of the terminal is detected to be the driving state, recording the motion trail of the terminal.
In one embodiment, the determining the motion state of the terminal includes: acquiring positioning data recalled by a terminal; acquiring speed values of a preset number of positioning points from the recalled positioning data; and when the locating point with the speed value reaching the preset speed threshold value reaches the preset quantity threshold value, judging that the motion state of the terminal is the driving state.
In one embodiment, the processor, when executing the computer program, further performs the steps of: and when the speed value of the positioning point does not reach the preset speed threshold value, emptying the data of the positioning point of which the speed value does not reach the preset speed threshold value.
In one embodiment, before determining the motion state of the terminal, the processor executes the computer program to further perform the following steps: acquiring a sensor state code returned by a terminal; when the sensor state code indicates that the terminal is in a non-driving state, starting a positioning callback mode; and stopping the positioning detection when the sensor state code indicates that the terminal is in the driving state.
In one embodiment, the positioning callback mode recalls positioning data of the terminal, and the motion state of the terminal is judged through the positioning data; when the data of the coprocessor of the terminal is successfully acquired, the positioning data is high-precision positioning data of the coprocessor and the terminal; and when the data of the coprocessor of the terminal is not successfully acquired, the positioning data is high-precision positioning data of the terminal.
In one embodiment, after recording the motion trajectory of the terminal, the processor when executing the computer program further performs the steps of: when the motion state of the terminal is detected to be a non-driving state, acquiring positioning data of a stop position of the terminal; and using the position where the terminal stops as the center of a circle and using a preset numerical value as a radius to define a corresponding area as an ending fence area.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of: acquiring current position information of a terminal; defining a starting fence area according to the current position information; when the terminal is detected to move from the inside of the starting fence area to the outside of the starting fence area, starting a positioning callback mode, and judging the motion state of the terminal; and when the motion state of the terminal is detected to be the driving state, recording the motion trail of the terminal.
In one embodiment, the determining the motion state of the terminal includes: acquiring positioning data recalled by a terminal; acquiring speed values of a preset number of positioning points from the recalled positioning data; and when the locating point with the speed value reaching the preset speed threshold value reaches the preset quantity threshold value, judging that the motion state of the terminal is the driving state.
In one embodiment, the computer program when executed by the processor further performs the steps of: and when the speed value of the positioning point does not reach the preset speed threshold value, emptying the data of the positioning point of which the speed value does not reach the preset speed threshold value.
In one embodiment, the computer program when executed by the processor further performs the following steps before determining the motion state of the terminal: acquiring a sensor state code returned by a terminal; when the sensor state code indicates that the terminal is in a non-driving state, starting a positioning callback mode; and stopping the positioning detection when the sensor state code indicates that the terminal is in the driving state.
In one embodiment, the positioning callback mode recalls positioning data of the terminal, and the motion state of the terminal is judged through the positioning data; when the data of the coprocessor of the terminal is successfully acquired, the positioning data is high-precision positioning data of the coprocessor and the terminal; and when the data of the coprocessor of the terminal is not successfully acquired, the positioning data is high-precision positioning data of the terminal.
In one embodiment, after recording the movement trace of the terminal, the computer program when executed by the processor further performs the steps of: when the motion state of the terminal is detected to be a non-driving state, acquiring positioning data of a stop position of the terminal; and using the position where the terminal stops as the center of a circle and using a preset numerical value as a radius to define a corresponding area as an ending fence area.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A method of initiating a driving recording, the method comprising:
acquiring current position information of a terminal;
defining an initial fence area according to the current position information;
when the terminal is detected to move from the inside of the starting fence area to the outside of the starting fence area, starting a positioning callback mode, starting a timer, acquiring positioning data of the terminal, stopping the positioning callback mode and acquiring the positioning data after a preset time period is reached, and judging the motion state of the terminal based on the positioning data of the preset time period;
and when the motion state of the terminal is detected to be a driving state, recording the motion trail of the terminal.
2. The method according to claim 1, wherein the determining the motion state of the terminal based on the positioning data of the preset time period comprises:
acquiring speed values of a preset number of positioning points from the positioning data of the preset time period;
and when the locating point with the speed value reaching the preset speed threshold value reaches the preset quantity threshold value, judging that the motion state of the terminal is a driving state.
3. The method of claim 2, further comprising:
and when the speed value of the positioning point does not reach the preset speed threshold value, emptying the data of the positioning point of which the speed value does not reach the preset speed threshold value.
4. The method according to claim 1, wherein before determining the motion state of the terminal, further comprising:
acquiring a sensor state code returned by the terminal;
when the sensor state code indicates that the terminal is in a non-driving state, starting a positioning callback mode;
and stopping positioning detection when the sensor state code indicates that the terminal is in a driving state.
5. The method of claim 1, further comprising: the positioning callback mode recalls positioning data of the terminal in the preset time period, and the motion state of the terminal is judged through the positioning data; when data of a coprocessor of the terminal are successfully acquired, the positioning data are high-precision positioning data of the coprocessor and the terminal;
and when the data of the coprocessor of the terminal is not successfully acquired, the positioning data is high-precision positioning data of the terminal.
6. The method according to claim 1, further comprising, after recording the motion trajectory of the terminal:
when the motion state of the terminal is detected to be a non-driving state, acquiring positioning data of a stop position of the terminal;
and using the position where the terminal stops as the center of a circle and using a preset numerical value as a radius to define a corresponding area as an end fence area.
7. An apparatus for initiating a driving recording, the apparatus comprising:
the positioning data acquisition module is used for acquiring the current position information of the terminal;
the area dividing module is used for dividing a starting fence area according to the current position information;
the recording starting module is used for starting a positioning callback mode, starting a timer and acquiring positioning data of the terminal when the terminal is detected to move from the inside of the starting fence area to the outside of the starting fence area, stopping the positioning callback mode and stopping acquiring the positioning data after a preset time period is reached, and judging the motion state of the terminal based on the positioning data of the preset time period; and when the motion state of the terminal is detected to be a driving state, recording the motion trail of the terminal.
8. The apparatus according to claim 7, wherein the record starting module is further configured to obtain speed values of a preset number of positioning points from the positioning data of the preset time period; and when the locating point with the speed value reaching the preset speed threshold value reaches the preset quantity threshold value, judging that the motion state of the terminal is a driving state.
9. A computer device comprising a memory and a processor, the memory storing a computer program, wherein the processor implements the steps of the method of any one of claims 1 to 6 when executing the computer program.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 6.
CN201811118144.1A 2018-09-26 2018-09-26 Method and device for starting driving record, computer equipment and storage medium Active CN109493447B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811118144.1A CN109493447B (en) 2018-09-26 2018-09-26 Method and device for starting driving record, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811118144.1A CN109493447B (en) 2018-09-26 2018-09-26 Method and device for starting driving record, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN109493447A CN109493447A (en) 2019-03-19
CN109493447B true CN109493447B (en) 2022-03-29

Family

ID=65689883

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811118144.1A Active CN109493447B (en) 2018-09-26 2018-09-26 Method and device for starting driving record, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN109493447B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112444831B (en) * 2020-12-02 2023-03-14 众安在线财产保险股份有限公司 Terminal power saving method and device for GPS data acquisition and intelligent terminal
CN114500454B (en) * 2021-12-20 2024-01-23 成都鲁易科技有限公司 Method and device for detecting geographic position change of electronic equipment

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
ES2305360T3 (en) * 2002-02-26 2008-11-01 Vodafone Holding Gmbh PROCEDURE FOR GENERATING INFORMATION DATA FOR USERS OF PORTABLE DEVICES OF AN INFORMATION TRANSMISSION SYSTEM.
CN101806908A (en) * 2009-02-18 2010-08-18 捷讯研究有限公司 Automatically start velocity survey in the mobile device based on available motion
CN102938808A (en) * 2012-11-23 2013-02-20 北京小米科技有限责任公司 Information recording method and device of mobile terminal
CN103674025A (en) * 2013-12-26 2014-03-26 深圳超多维光电子有限公司 Displacement computing method and device for intelligent terminal
CN105138589A (en) * 2015-07-31 2015-12-09 北京奇虎科技有限公司 Geographical location monitoring method and device
CN106413082A (en) * 2015-07-31 2017-02-15 北京奇宝科技有限公司 Geographic location monitoring method and apparatus
CN106851579A (en) * 2017-03-27 2017-06-13 华南师范大学 The method that teacher's mobile data is recorded and analyzed based on indoor positioning technologies
CN107113571A (en) * 2016-02-02 2017-08-29 华为技术有限公司 A kind of action trail recording method and device
CN107705564A (en) * 2017-08-16 2018-02-16 齐鲁交通信息有限公司 Express-road vehicle running track identification system and method based on mobile phone positioning
CN107995590A (en) * 2017-11-30 2018-05-04 维沃移动通信有限公司 A kind of information recording method and mobile terminal

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5348466B2 (en) * 2008-04-28 2013-11-20 富士通株式会社 Portable terminal device, moving route recording method, and program
US9846977B1 (en) * 2014-09-02 2017-12-19 Metromile, Inc. Systems and methods for determining vehicle trip information
CN105049720B (en) * 2015-07-08 2018-09-11 成都西可科技有限公司 A method of according to moving scene automatic start-stop moving camera

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
ES2305360T3 (en) * 2002-02-26 2008-11-01 Vodafone Holding Gmbh PROCEDURE FOR GENERATING INFORMATION DATA FOR USERS OF PORTABLE DEVICES OF AN INFORMATION TRANSMISSION SYSTEM.
CN101806908A (en) * 2009-02-18 2010-08-18 捷讯研究有限公司 Automatically start velocity survey in the mobile device based on available motion
CN102938808A (en) * 2012-11-23 2013-02-20 北京小米科技有限责任公司 Information recording method and device of mobile terminal
CN103674025A (en) * 2013-12-26 2014-03-26 深圳超多维光电子有限公司 Displacement computing method and device for intelligent terminal
CN105138589A (en) * 2015-07-31 2015-12-09 北京奇虎科技有限公司 Geographical location monitoring method and device
CN106413082A (en) * 2015-07-31 2017-02-15 北京奇宝科技有限公司 Geographic location monitoring method and apparatus
CN107113571A (en) * 2016-02-02 2017-08-29 华为技术有限公司 A kind of action trail recording method and device
CN106851579A (en) * 2017-03-27 2017-06-13 华南师范大学 The method that teacher's mobile data is recorded and analyzed based on indoor positioning technologies
CN107705564A (en) * 2017-08-16 2018-02-16 齐鲁交通信息有限公司 Express-road vehicle running track identification system and method based on mobile phone positioning
CN107995590A (en) * 2017-11-30 2018-05-04 维沃移动通信有限公司 A kind of information recording method and mobile terminal

Also Published As

Publication number Publication date
CN109493447A (en) 2019-03-19

Similar Documents

Publication Publication Date Title
KR102529903B1 (en) Apparatus and method for estimating position of vehicle
CN110193828B (en) Method and device for identifying state of mobile robot
CN109493447B (en) Method and device for starting driving record, computer equipment and storage medium
CN113811830B (en) Trajectory prediction method, apparatus, computer device and storage medium
US9200906B1 (en) System and methods for handheld device based battery efficient context monitoring, detection of a vehicular motion and identification of a specific vehicle
JP7148619B2 (en) System and method for vehicle lane change detection
CN110850233A (en) Cable fault positioning method and device
CN110837956A (en) Underground cable inspection task distribution method and device
CN111008671B (en) Gesture recognition method and apparatus, electronic device, and computer-readable storage medium
CN108399125B (en) Automatic testing method and device, computer equipment and storage medium
CN112444831B (en) Terminal power saving method and device for GPS data acquisition and intelligent terminal
CN109767613B (en) Method, device and equipment for early warning of vehicle deviation from preset route and storage medium
CN111898035A (en) Data processing strategy configuration method and device based on Internet of things and computer equipment
CN109286901B (en) Start-stop event triggering method and device, computer equipment and storage medium
CN115798146A (en) Drowning prevention early warning method and device, computer equipment and storage medium
CN113488002B (en) Abnormal screen brightness adjusting method and device, electronic equipment and medium
CN115240400A (en) Vehicle position recognition method and device, and vehicle position output method and device
CN113190380A (en) Equipment relocation error recovery method and device, computer equipment and storage medium
CN108959419B (en) Video file recording processing method and device, computer equipment and storage medium
CN109189273B (en) Touch event processing method and device, computer equipment and storage medium
CN109828892B (en) Performance test method and device of asynchronous interface, computer equipment and storage medium
CN110889357A (en) Underground cable fault detection method and device based on marked area
CN111610033A (en) Test method and device for automatic parking system
CN113032055A (en) Terminal display interface control method and device, computer equipment and storage medium
CN109408140B (en) Method, device, computer equipment and storage medium for starting travel record

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