CN111524253A - Driving recording method, driving recording system, computer device and storage medium - Google Patents

Driving recording method, driving recording system, computer device and storage medium Download PDF

Info

Publication number
CN111524253A
CN111524253A CN202010385438.1A CN202010385438A CN111524253A CN 111524253 A CN111524253 A CN 111524253A CN 202010385438 A CN202010385438 A CN 202010385438A CN 111524253 A CN111524253 A CN 111524253A
Authority
CN
China
Prior art keywords
position information
original position
time node
information point
point
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.)
Granted
Application number
CN202010385438.1A
Other languages
Chinese (zh)
Other versions
CN111524253B (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.)
Deyintianxia Investment Holding Co ltd
Original Assignee
Deyintianxia Investment Holding Co 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 Deyintianxia Investment Holding Co ltd filed Critical Deyintianxia Investment Holding Co ltd
Priority to CN202010385438.1A priority Critical patent/CN111524253B/en
Publication of CN111524253A publication Critical patent/CN111524253A/en
Application granted granted Critical
Publication of CN111524253B publication Critical patent/CN111524253B/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
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/30Services specially adapted for particular environments, situations or purposes
    • H04W4/40Services specially adapted for particular environments, situations or purposes for vehicles, e.g. vehicle-to-pedestrians [V2P]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Traffic Control Systems (AREA)
  • Navigation (AREA)

Abstract

The invention provides a driving recording method, a driving recording system, computer equipment and a storage medium, wherein the method comprises the following steps: acquiring N original position information points sent by a vehicle at N time nodes; n is a positive integer; screening the N original position information points according to the position relation among the N original position information points and the time relation among the N original position information points to obtain M effective position information points; m is a positive integer not greater than N; generating a driving track of the vehicle according to the M effective position information points; and when a driving track acquisition instruction sent by the terminal is received, sending the data of the driving track to the terminal. The invention can preprocess the position information points uploaded by the automobile, improve the accuracy of the track path, reduce the data transmission quantity of the server and the user terminal and reduce the consumption of user flow.

Description

Driving recording method, driving recording system, computer device and storage medium
Technical Field
The present invention relates to the field of intelligent processing technologies, and in particular, to a driving recording method, a driving recording system, a computer device, and a storage medium.
Background
Along with the development of science and technology, positioning technology is more mature, and the user can know oneself or other people's position through the terminal, installs positioning system on certain object, and the user can also know the specific position of this object through the terminal.
In the automobile industry, many automobiles are also provided with positioning systems, such as the system of the marceseds me, and users can know the position of the own love car through the bound account. When the vehicle is lent to other people for use or used by relatives, the user can know the specific driving route of the vehicle.
In the implementation process of the technology, the automobile is provided with the positioning equipment, the positioning equipment can send the position information points at regular time like a server, and the terminal can acquire the position information point data from the server and further display the position of the automobile on the terminal. In the prior art, a server often fails to preprocess a position information point uploaded by an automobile, so that a driving track generated according to the position information point cannot accurately reflect the driving condition of the automobile.
Disclosure of Invention
The invention aims to provide a driving recording method, a driving recording system, computer equipment and a storage medium, which can preprocess position information points uploaded by a vehicle, reduce the data transmission quantity of a server and a user terminal when the vehicle encounters traffic jam and the like, reduce the consumption of user flow and intuitively reflect the state of the vehicle from a generated running track.
The technical scheme provided by the invention is as follows:
in one aspect, the present invention provides a driving recording method, including: s10: acquiring N original position information points sent by a vehicle at N time nodes, wherein N is a positive integer; s20: screening the N original position information points according to the position relation among the N original position information points and the time relation among the N original position information points to obtain M effective position information points; m is a positive integer not greater than N; s30: generating a driving track of the vehicle according to the M effective position information points; s40: and when a driving track acquisition instruction sent by a terminal is received, sending the data of the driving track to the terminal.
In one embodiment, the step S20 specifically includes the steps of: s21: screening the N original position information points according to the position relation among the N original position information points to obtain A distance effective position information points; s22: screening the N original position information points according to the time relationship among the N original position information points to obtain B time effective position information points; s23: integrating the A distance effective position information points and the B time effective position information points to obtain M effective position information points; wherein A, B is a positive integer.
In one embodiment, the step S21 specifically includes the steps of: s211 a: judging whether an angle between a driving direction corresponding to the original position information point of the current time node and a driving direction corresponding to the original position information point of the last time node is smaller than a preset angle or not; s212 a: if the current time node is smaller than the current time node, the original position information point of the current time node is discarded, the original position information point of the next time node is set as the original position information point of the current time node, and the step S211a is returned to be executed until all the N original position information are screened; if not, the step S213a sets the original location information point of the current time node as the valid location information point, and sets the original location information point of the next time node as the original location information point of the current time node; the step S211a is executed again until all the N original location information filtering processes are completed.
In one embodiment, the step S21 specifically includes the steps of: s211 b: judging whether the distance between the original position information point of the current time node and the original position information point of the last time node is smaller than a preset distance or not; s212 b: if the current time node is smaller than the preset time node, the original position information point of the current time node is omitted, and the original position information point of the next time node is set as the original position information point of the current time node; returning to execute the step S211b until all the N original location information are filtered; s213 b: if not, setting the original position information point of the current time node as an effective position information point, and setting the original position information point of the next time node as the original position information point of the current time node; the step S211b is executed again until all the N original location information filtering processes are completed.
In one embodiment, the step S22 specifically includes the steps of: s221 a: judging whether the time difference between the original position information point of the current time node and the original position information point of the previous time node is less than the preset time or not; s222 a: if the current time node is smaller than the preset time node, the original position information point of the current time node is omitted, and the original position information point of the next time node is set as the original position information point of the current time node; returning to execute the step S221a until all the N original location information are filtered; s223 a: if not, setting the original position information point of the current time node as an effective position information point, and setting the original position information point of the next time node as the original position information point of the current time node; the step S221a is executed again until all the N pieces of original location information are filtered.
In one embodiment, the step S20 specifically includes the steps of: s201: selecting a first original position information point from the N original position information points according to the sequence of the time nodes as a first effective position information point; s202: screening (P-1) effective position information points from the N original position information points according to the sequence of the time nodes, and setting the original position information point of the next time node of the last effective position information point as the original position information point of the current time node, wherein P is the number of preset peak values and is a positive integer less than N; s203: judging whether the distance between the original position information point of the current time node and the original position information point of the last time node is smaller than a preset distance or not; s204: if the distance between the original position information point of the current time node and the original position information point of the previous time node is smaller than the preset distance, the original position information point of the current time node is omitted, the original position information point of the next time node is set as the original position information point of the current time node, and the step S203 is returned to; s205: if the distance between the original position information point of the current time node and the original position information point of the previous time node is not less than the preset distance, setting the original position information point of the current time node as an effective position information point, setting the original position information point of the next time node as the original position information point of the current time node, and executing S206; s206: judging whether the distance between the original position information point of the current time node and the original position information point of the previous time node is smaller than a default value or not; s207: if the distance between the original position information point of the current time node and the original position information point of the previous time node is not less than the default value, setting the original position information point of the current time node as an effective position information point and reserving the effective position information point, setting the original position information point of the next time node as the original position information point of the current time node, and returning to execute the step S206; s208: if the distance between the original location information point of the current time node and the original location information point of the previous time node is smaller than the default value, go to step S209; s209: judging whether the time difference between the original position information point of the current time node and the original position information point of the previous time node is greater than the preset time or not; s2010: if the time difference between the original position information point of the current time node and the original position information point of the previous time node is less than the preset time, the original position information point of the current time node is omitted, the original position information point of the next time node is set as the original position information point of the current time node, and the step S209 is executed again; s2011: if the time difference between the original position information point of the current time node and the original position information point of the previous time node is not less than the preset time, setting the original position information point of the current time node as an effective position information point, and setting the original position information point of the next time node as the original position information point of the current time node; returning to execute step S206; s2012: and after the N original position information are screened, M effective position information is obtained.
In one embodiment, the step S2051 is further included between the steps S205 and S206: setting a count value, wherein the count value is an integer; in step S207, assigning the current count value to zero; in step S2011, after the step of setting the original location information point of the next time node as the original location information point of the current time node, obtaining a value of the current count value, adding one to the current count value, and assigning a value to the current count value, then determining whether the current count value is smaller than a preset peak value, if not, executing step S203, and if so, executing step S206. .
On the other hand, the invention also provides a driving recording system for implementing the recording forming method, wherein the driving recording system comprises: the system comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring N original position information points sent by a vehicle at N time nodes, and N is a positive integer; the processing module is used for screening the N original position information points according to the position relation among the N original position information points and the time relation among the N original position information points to obtain M effective position information points; m is a positive integer not greater than N; the track generation module is used for generating a driving track of the vehicle according to the M effective position information points; and the sending module is used for sending the data of the driving track to the terminal when receiving the driving track obtaining instruction sent by the terminal.
The invention also provides computer equipment for implementing the driving recording method, which comprises the following steps: a processor and a memory; wherein the memory is used for storing computer programs; the processor is configured to execute the computer program stored on the memory.
The invention further provides a storage medium, wherein at least one instruction is stored in the storage medium, and the instruction is loaded and executed by the processor to realize the operation executed by the driving recording method.
By the driving recording method, the driving recording system, the computer equipment and the storage medium, the original position information points uploaded by the vehicle-mounted positioning device can be further processed, when the vehicle encounters traffic jam and other conditions, the data transmission quantity of the server and the user terminal is reduced, the consumption of user flow is reduced, the state of the vehicle can be intuitively reflected from the generated track path, and the accuracy of the track path is improved.
Drawings
The above features, technical features, advantages and implementations of a tachograph method, a tachograph system, a computer device and a storage medium will be further explained in the following description of preferred embodiments in a well-understood manner with reference to the accompanying drawings.
FIG. 1 is a schematic flow chart diagram illustrating an embodiment of a driving recording method of the present invention;
FIG. 2 is a flow chart illustrating an embodiment of a driving recording method of the present invention;
FIG. 3 is a schematic diagram illustrating effective location information point fetching according to an embodiment of a driving recording method of the present invention;
FIG. 4 is a flow chart illustrating an embodiment of a driving recording method of the present invention;
FIG. 5 is a flow chart illustrating an embodiment of a driving recording method of the present invention;
FIG. 6 is a flow chart illustrating an exemplary embodiment of a driving recording method of the present invention;
FIG. 7 is a schematic structural diagram of an embodiment of a driving recording system according to the present invention;
FIG. 8 is a schematic diagram of a computer device according to an embodiment of the present invention.
Detailed Description
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following description will be made with reference to the accompanying drawings. It is obvious that the drawings in the following description are only some examples of the invention, and that for a person skilled in the art, other drawings and embodiments can be derived from them without inventive effort.
[ example 1 ]
As shown in fig. 1, the present invention provides an embodiment of a driving recording method, where the method is executed by a server, and the method includes:
s10: acquiring N original position information points sent by a vehicle at N time nodes; n is a positive integer;
specifically, a vehicle-mounted positioning device can be installed in the vehicle, and a communication device can be installed on the vehicle-mounted positioning device and can report the original position information point of the vehicle to a server according to a certain frequency. For example, the vehicle-mounted positioning device may send the original location information point of the vehicle to the server at a frequency of 60 times per minute, that is, 60 original location information points corresponding to 60 time nodes are uploaded in one minute. The server can receive and acquire 60 original position information points sent by the vehicle at 60 time nodes.
S20: screening the N original position information points according to the position relation among the N original position information points and the time relation among the N original position information points to obtain M effective position information points; m is a positive integer not greater than N;
as described above, the vehicle-mounted positioning device continuously sends the original location information points of the vehicle to the server during the driving process of the vehicle, and if the user wants to obtain the driving track route of the vehicle through the user terminal, sending all the original location information points to the user terminal undoubtedly causes a large data traffic transmission, which is not favorable for the long-term use of the user. Therefore, the present application aims to improve the positioning accuracy, reduce the flow consumption of the user terminal, and clearly reflect the driving state of the vehicle, such as the driving speed and the position, on the generated driving track route.
In the process of simplifying data, the N original position information points are screened according to the position relationship among the N original position information points and the time relationship among the N original position information points. Specifically, the method may include extracting a next original position information point, which is adjacent to the N original position information points and has a distance greater than a preset distance, to form a distance valid position information point, extracting position information points, which have a time interval greater than a preset time interval, from the N original position information points to form a time valid position information point, and then superimposing the position valid information points and the time valid information points to obtain a final valid position information point.
S30: generating a driving track of the vehicle according to the M effective position information points;
specifically, the server may perform punctuation on the map according to the effective position information obtained by the screening, and then generate a driving track of the vehicle.
S40: and when a driving track acquisition instruction sent by the terminal is received, sending the data of the driving track to the terminal.
Specifically, a terminal of a user can establish data communication with a server, the user sends a driving track obtaining instruction to the server through the terminal so as to obtain driving track data from the server, and the server sends the driving track data to the terminal when receiving the driving track obtaining instruction sent by the terminal.
By the driving recording method provided by the embodiment, the original position information point uploaded by the vehicle-mounted positioning device can be further processed, the data transmission quantity of the server and the user terminal is reduced, and the consumption of user traffic is reduced.
[ example 2 ]
As shown in fig. 2, the present invention further provides another embodiment of a driving recording method, which can be executed by a server, and the method includes:
s10: acquiring N original position information points sent by a vehicle at N time nodes, wherein N is a positive integer;
s21: screening the N original position information points according to the position relation among the N original position information points to obtain A distance effective position information points;
the step S21 may include: s211 b: judging whether the distance between the original position information point of the current time node and the original position information point of the last time node is smaller than a preset distance or not;
s212 b: if the current time node is smaller than the preset time node, the original position information point of the current time node is omitted, and the original position information point of the next time node is set as the original position information point of the current time node; returning to step S211b until all the N original location information are filtered;
s213 b: if not, setting the original position information point of the current time node as an effective position information point, and setting the original position information point of the next time node as the original position information point of the current time node; the step S211b is executed again until all the N pieces of original location information are filtered.
Specifically, if the distance between the original location information points of two adjacent time nodes is small, it indicates that the driving speed of the vehicle is slow, and many original location information points with very close relative positions must be generated during the driving process, and if the original location information points are all sent to the user terminal, relatively large data transmission will be generated. Therefore, in this embodiment, it is determined whether the distance between the original location information point of the current time node and the original location information point of the previous time node is smaller than a preset distance; if the distance between the two points is smaller than the preset distance, the original position information point of the current time node can be omitted, and the original position information point of the next time node is set as the original position information point of the current time node; if the distance between the two points is not less than the preset distance, the distance between the two points is larger, the original position information point of the current time node is set as an effective position information point to be reserved, and the original position information point of the next time node is set as the original position information point of the current time node; and then, returning to the next time node for screening processing.
For example: a, B, C, D, E original position information points are collected, the distance between the point A and the point B is 1 meter, the distance between the point B and the point C is 2 meters, the distance between the point C and the point D is 3 meters, the distance between the point D and the point E is 5 meters, the preset distance is set to be 5 meters, the server firstly reserves the initial point, namely the point A, otherwise, the initial position of the automobile cannot be known, then the automobile uses the point B as the original position information point of the current time node, judges whether the distance between the point B and the original position information point (point A) of the previous time node is less than 5 meters, if the judgment result is less than, the point B is discarded, then uses the original position information point (point C) of the next time node as the original position information point of the current time node, and then continuously judges whether the distance between the point C and the original position information point (point A) of the previous time node is less than the preset distance If the distance is 5 meters, and the distance between the point A and the point C is 3 meters or less than the preset distance of 5 meters, the point C is continuously removed, the original position information point (point D) of the next time node is taken as the original position information point of the current time node, then whether the distance between the point D and the original position information point (point A) of the previous time node is less than the preset distance of 5 meters is continuously judged, and if the distance between the point A and the point D is 6 meters and is greater than the preset distance of 5 meters, the point D is kept as the effective position information point, the original position information point (point E) of the next time node is taken as the original position information point of the current time node, the distance is continuously compared with the original position information point D of the previous time node, and similarly, the distance between the point D and the point E exceeds the preset distance of 5 meters, and reserving the E point as an effective position information point. It can be seen that, in the embodiment, the original position information point A, B, C, D, E, F is reduced to A, D, E, and the data volume of the automobile driving track is reduced while the driving track of the automobile is accurately recorded.
S22: screening the N original position information points according to the time relationship among the N original position information points to obtain B time effective position information points;
the step S22 may include:
s221 a: judging whether the time difference between the original position information point of the current time node and the original position information point of the previous time node is less than the preset time or not;
s222 a: if the current time node is smaller than the current time node, the original position information point of the current time node is omitted, the original position information point of the next time node is set as the original position information point of the current time node, and the step S221a is returned to be executed until all the N original position information are screened;
s223 a: if not, setting the original position information point of the current time node as an effective position information point, and setting the original position information point of the next time node as the original position information point of the current time node; the process returns to step S221a until all the N pieces of original location information are subjected to the filtering process.
Specifically, the vehicle-mounted positioning device uploads the original position information points to the server according to a certain frequency, the server can perform further screening after receiving the original position information points, as described above, it can be determined whether the time difference between the original position information points of the two time nodes is less than the preset time, the original position information points with the time difference greater than or equal to the preset time are reserved as valid position information points, and the original position information points with the time difference less than the preset time are discarded.
For example: a, B, C, D, E original position information points are collected, the time node of the point A is the 0 th S, the time node of the point B is the 1 st S, the time node of the point C is the 3 rd S, the time node of the point D is the 7 th S, and the preset time is set to be 3S. The server firstly reserves the initial point, namely the point A, otherwise the initial position of the automobile cannot be known, then the automobile takes the point B as the original position information point of the current time node, judges whether the time difference between the point B and the original position information point (the point A) of the previous time node is less than the preset time for 3 seconds, if the judgment result is that the time difference between the point A and the point B is 1 second and less than the preset time for 3 seconds, the point B is discarded, then the original position information point (the point C) of the next time node is taken as the original position information point of the current time node, then continuously judges whether the time difference between the point C and the original position information point (the point A) of the previous time node is less than the preset time for 3 seconds, if the time difference between the point A and the point C is 3 seconds and not less than the preset time for 3 seconds, the point C is reserved as the effective position information point, setting an original position information point (D point) of a next time node as an original position information point of a current time node, continuously judging whether the time difference between the D point and an original position information point (C point) of a previous time node is less than the preset time for 3 seconds, if so, the time difference between the C point and the D point is 2S, if so, the D point is omitted, setting an original position information point (E point) of the next time node as an original position information point of the current time node, and continuously judging whether the time difference between the E point and the original position information point (C point) of the previous time node is more than the preset time for 3 seconds, if so, the time difference between the C point and the E point is 4 seconds and is more than the preset time for 3 seconds, and then, continuously keeping the E point as an effective position information point. It can be seen that, in the embodiment, the original position information point A, B, C, D, E, F is reduced to A, C, E, and the data volume of the automobile driving track is reduced while the driving track of the automobile is accurately recorded.
It should be noted that the order of S21 and S22 may be reversed.
S23: and integrating the A distance effective position information points and the B time effective position information points to obtain M effective position information points, wherein A, B is a positive integer.
Specifically, as described above, A, D, E three effective position information points are obtained in step S21, and A, C, E three effective position information points are obtained in step S22, so that two processing results can be superimposed to obtain A, C, D, E four effective position information points.
S30: generating a driving track of the vehicle according to the M effective position information points;
and S40, when receiving the driving track acquisition instruction sent by the terminal, sending the driving track data to the terminal.
Specifically, a terminal of a user can establish data communication with the server, the user sends a driving track obtaining instruction to the server through the terminal so as to obtain driving track data from the server, and the server sends the driving track data to the terminal when receiving the driving track obtaining instruction sent by the terminal.
By the driving recording method provided by the embodiment, the original position information points uploaded by the vehicle-mounted positioning device can be further processed, for example, the original position information points close to the time nodes or the original position information points close to the positions are deleted, so that the data transmission amount between the server and the user terminal is reduced, the consumption of user traffic is reduced, and meanwhile, the user can intuitively see the driving condition of the vehicle from the generated driving track.
[ example 3 ]
As shown in fig. 4, the present invention further provides another embodiment of a driving recording method, where the method steps may be executed by a server, and the method includes:
s10: acquiring N original position information points sent by a vehicle at N time nodes, wherein N is a positive integer;
s211 a: judging whether an angle between a driving direction corresponding to the original position information point of the current time node and a driving direction corresponding to the original position information point of the last time node is smaller than a preset angle or not;
s212 a: if the current time node is smaller than the preset time node, the original position information point of the current time node is omitted, and the original position information point of the next time node is set as the original position information point of the current time node; returning to step S211a until all the N original location information are filtered;
s213 a: if not, the original location information point of the current time node is set as the valid location information point, the original location information point of the next time node is set as the original location information point of the current time node, and the step S211a is executed again until all the N original location information are filtered.
During the driving process of the automobile, the automobile has two operation modes of steering and straight driving, and during the driving process of the automobile, the vehicle-mounted positioning device in the automobile can always send the original position information point of the automobile to the server. When the user acquires the vehicle driving track, if the server sends all the original position information points to the user terminal, data transmission is inevitably overlarge, and therefore, in order to reduce the data volume transmitted to the user terminal by the server, the original position data is processed in the embodiment. After the server acquires the N original position information points, the server processes the data according to the uploading time of the original position information points.
When the processing is performed, the original position information point being processed can be recorded as the original position information point of the current time node, and whether the angle between the driving direction corresponding to the original position information point of the current time node and the driving direction corresponding to the original position information point of the previous time node is smaller than a preset angle or not is judged. For example, the preset angle can be set to 5 degrees; if the current time node is greater than the previous time node, the current time node is changed in direction relative to the previous time node, or a turn is made, or a lane change is made; if the current time node is smaller than the previous time node, the direction of the current time node is almost unchanged relative to the previous time node, and the automobile can be considered to be running in a straight line. When the automobile runs in a straight line, the running track of the automobile can be marked only by recording the start position information point and the end position information point in the straight line running process, the middle position information points can be ignored, and if all the original position information points of the whole straight line running public are reserved, the server inevitably generates very large data when sending the vehicle running track data to the user terminal. Therefore, in this embodiment, when it is determined that the angle between the driving direction corresponding to the original position information point of the previous time node and the driving direction corresponding to the original position information point of the previous time node is smaller than the preset angle, the original position information point of the current time node is discarded, and only when it is determined that the angle between the driving direction corresponding to the original position information point of the previous time node and the driving direction corresponding to the original position information point of the previous time node is greater than or equal to the preset angle, the original position information point of the current time node is retained. Therefore, key points of the automobile in the track changing process are recorded, and middle points of straight driving are abandoned.
For example: as shown in fig. 3, when the automobile runs from west to east and reaches the intersection, the automobile instead runs to south, and during the running process from the point a to the point I, the vehicle-mounted positioning device of the automobile uploads A, B, C, D, E, F, G, H, I original position information points to the server. If the server transmits all the 9 original position information points to the user terminal, then when the user travels a long distance, a relatively large data transmission occurs, which causes a waste of resources. Obviously, in fig. 3, all of a to F are driving straight, F to H are turning, and H to I are driving straight, it is seen that only the five original location information points A, G, H, I need to be recorded to draw the driving route map of the automobile.
When processing, the server records the first original position information point A of the automobile, and then when processing the point B, the point B is set as the original position information point of the current time node. And the server judges whether the angle deviation between the direction of the point B and the direction of the original position information point A of the previous time node exceeds a preset angle, if the judgment result is less than the preset angle, the point B is abandoned, then the point C is continuously set as the original position information point of the current time node, and the direction of the point A is continuously compared with the direction of the original position information point A of the previous time node. When the server sets the point G as the current position time node, it can be found that the driving direction of the point G and the point a has changed significantly, so that the point G is reserved as an effective position information point, and similarly, the driving directions of the point G and the point H are also changed, and the point H is reserved.
When the driving direction of the automobile at a certain original position information point is detected, the directions of the original position information point and the original position information point of the previous time node can be calculated, so that the driving direction of the automobile corresponding to the original position information point is obtained. For example, when the driving direction of the vehicle corresponding to the point D is determined, the position direction of the point C and the point D is determined, and it can be seen that the vehicle is driven from west to east from the point C to the point D.
S22: screening the N original position information points according to the time relationship among the N original position information points to obtain B time effective position information points; the implementation of this step can refer to example 2, and is not described herein again.
S23: integrating the A distance effective position information points and the B time effective position information points to obtain M effective position information points; wherein A, B is a positive integer. The implementation of this step can refer to example 2, and is not described herein again.
S30: generating a driving track of the vehicle according to the obtained M effective position information points;
s40: and when a driving track acquisition instruction sent by the terminal is received, sending the data of the driving track to the terminal.
Specifically, a terminal of a user can establish data communication with a server, the user sends a driving track obtaining instruction to the server through the terminal so as to obtain driving track data from the server, and the server sends the driving track data to the terminal when receiving the driving track obtaining instruction sent by the terminal.
By the driving recording method provided by the embodiment, the original position information point uploaded by the vehicle-mounted positioning device can be further processed, the data transmission quantity between the server and the user terminal is reduced, and the consumption of user flow is reduced.
[ example 4 ]
As shown in fig. 5, the present invention further provides another embodiment of a driving recording method, where the method steps may be executed by a server, and the method includes:
s10: acquiring N original position information points sent by a vehicle at N time nodes; n is a positive integer;
specifically, a vehicle-mounted positioning device can be installed in the vehicle, and a communication device can be installed on the vehicle-mounted positioning device and can report the original position information point of the vehicle to a server according to a certain frequency. For example, the vehicle-mounted positioning device may send the original location information point of the vehicle to the server at a frequency of 60 times per minute, that is, 60 original location information points corresponding to 60 time nodes are uploaded in one minute. The server side can receive and acquire 60 original position information points sent by the vehicle at 60 time nodes.
S211 b: and judging whether the distance between the original position information point of the current time node and the original position information point of the previous time node is smaller than a preset distance.
S212 b: if the current time node is smaller than the preset time node, the original position information point of the current time node is omitted, and the original position information point of the next time node is set as the original position information point of the current time node; returning to execute the step S211b until all the N original location information are filtered;
s213 b: if not, the original location information point of the current time node is set as the valid location information point, the original location information point of the next time node is set as the original location information point of the current time node, and the step S211b is executed again until all the N original location information are filtered.
Specifically, in steps S211b-S213b, if the distance between the original location information points of two adjacent time nodes is small, it indicates that the driving speed of the vehicle is relatively slow, and many original location information points having relatively close positions must be generated during driving, and if all of the original location information points are transmitted to the user terminal, relatively large data transmission is generated. Therefore, in this embodiment, it is determined whether the distance between the original location information point of the current time node and the original location information point of the previous time node is smaller than a preset distance; if the distance between the two points is smaller than the preset distance, the original position information point of the current time node can be omitted, and the original position information point of the next time node is set as the original position information point of the current time node; if the distance between the two points is not less than the preset distance, the distance between the two points is larger, the original position information point of the current time node is set as an effective position information point to be reserved, the original position information point of the next time node is set as the original position information point of the current time node, and then the next time node is continuously returned to be screened.
For example, A, B, C, D, E original location information points are collected, the distance between point a and point B is 1 meter, the distance between point B and point C is 2 meters, the distance between point C and point D is 3 meters, the distance between point D and point E is 5 meters, the preset distance is set to 5 meters, the server first reserves the initial point, that is, point a, but cannot know the starting location of the automobile, then the automobile uses point B as the original location information point of the current time node, determines whether the distance between point B and the original location information point (point a) of the previous time node is less than 5 meters, if the determination result is less than, discards point B, then uses the original location information point (point C) of the next time node as the original location information point of the current time node, and then continues to determine whether the distance between point C and the original location information point (point a) of the previous time node is less than 5 meters If the preset distance is 5 meters, and the distance between the point A and the point C is 3 meters or less than the preset distance by 5 meters, the point C is continuously omitted, the original position information point (point D) of the next time node is taken as the original position information point of the current time node, then whether the distance between the point D and the original position information point (point A) of the previous time node is less than the preset distance by 5 meters is continuously judged, and if the result is that the distance between the point A and the point D is 6 meters and is greater than the preset distance by 5 meters, the point D is taken as an effective position information point to be reserved, the original position information point (point E) of the next time node is taken as the original position information point of the current time node, and the distance is continuously compared with the original position information point C of the previous time node, and similarly, the distance between the point D and the point E also exceeds the preset distance by 5 meters, and reserving the E point as an effective position information point. It can be seen that, in the embodiment, the original position information point A, B, C, D, E, F is reduced to A, D, E, and the data volume of the automobile driving track is reduced while the driving track of the automobile is accurately recorded.
S221 a: judging whether the time difference between the original position information point of the current time node and the original position information point of the previous time node is less than the preset time or not;
s222 a: if the current time node is smaller than the preset time node, the original position information point of the current time node is omitted, and the original position information point of the next time node is set as the original position information point of the current time node; returning to execute the step S221a until all the screening processes of the N pieces of original location information are completed;
s223 a: if not, setting the original position information point of the current time node as an effective position information point, and setting the original position information point of the next time node as the original position information point of the current time node; the process returns to step S221a until all the N pieces of original location information are subjected to the filtering process.
Specifically, in steps S221a-S222a, the vehicle-mounted positioning device uploads the original location information points to the server at a certain frequency, and the server may perform further filtering after receiving the original location information points, as described above, determine whether the time difference between the original location information points of the two time nodes is less than the preset time, retain the original location information points with the time difference greater than or equal to the preset time as valid location information points, and discard the original location information points with the time difference less than the preset time.
For example: a, B, C, D, E original position information points are collected, the time node of A is 0S, the time node of B is 1S, the time node of C is 3S, the time node of D is 7S, and the preset time is set to be 3S. The server firstly reserves the initial point, namely the point A, otherwise the initial position of the automobile cannot be known, then the automobile takes the point B as the original position information point of the current time node, judges whether the time difference between the point B and the original position information point (the point A) of the previous time node is less than the preset time for 3 seconds, if the judgment result is that the time difference between the point A and the point B is 1 second and less than the preset time for 3 seconds, the point B is discarded, then the original position information point (the point C) of the next time node is taken as the original position information point of the current time node, then continuously judges whether the time difference between the point C and the original position information point (the point A) of the previous time node is less than the preset time for 3 seconds, if the time difference between the point A and the point C is 3 seconds and not less than the preset time for 3 seconds, the point C is reserved as the effective position information point, setting an original position information point (D point) of a next time node as an original position information point of a current time node, continuously judging whether the time difference between the D point and an original position information point (C point) of a previous time node is less than the preset time for 3 seconds, if so, the time difference between the C point and the D point is 2S, if so, the D point is omitted, setting an original position information point (E point) of the next time node as an original position information point of the current time node, and continuously judging whether the time difference between the E point and the original position information point (C point) of the previous time node is less than the preset time for 3 seconds, if so, the time difference between the C point and the E point is 4 seconds and is more than the preset time for 3 seconds, and then, taking the E point as an effective position information point to be reserved. It can be seen that, in the embodiment, the original position information point A, B, C, D, E, F is reduced to A, C, E, and the data volume of the automobile driving track is reduced while the driving track of the automobile is accurately recorded.
S23: and integrating the A distance effective position information points and the B time effective position information points to obtain M effective position information points, wherein A, B is a positive integer.
S30: generating a driving track of the vehicle according to the M effective position information points;
s40: and when a driving track acquisition instruction sent by the terminal is received, sending the data of the driving track to the terminal.
Specifically, a terminal of a user can establish data communication with a server, the user sends a driving track obtaining instruction to the server through the terminal so as to obtain driving track data from the server, and the server sends the driving track data to the terminal when receiving the driving track obtaining instruction sent by the terminal.
By the driving recording method provided by the embodiment, the original position information point uploaded by the vehicle-mounted positioning device can be further processed, the data transmission quantity of the server and the user terminal is reduced, and the consumption of user traffic is reduced.
[ example 5 ]
As shown in fig. 6, the present invention further provides another embodiment of a driving recording method, where the method steps may be executed by a server, and the method includes:
s10: acquiring N original position information points sent by a vehicle at N time nodes; n is a positive integer;
specifically, a vehicle-mounted positioning device can be installed in the vehicle, and a communication device can be installed on the vehicle-mounted positioning device and can report the original position information point of the vehicle to a server according to a certain frequency. For example, the vehicle-mounted positioning device may send the original location information point of the vehicle to the server at a frequency of 60 times per minute, that is, 60 original location information points corresponding to 60 time nodes are uploaded in one minute. The server can receive and acquire 60 original position information points sent by the vehicle at 60 time nodes.
S201: selecting a first original position information point from the N original position information points according to the sequence of the time nodes as a first effective position information point;
specifically, the first original position information point of the N original position information point clocks can be used as the first effective position information point, so that the comparison can be performed with the subsequent continuous point fetching.
S202: and (P-1) effective position information points are screened from the N original position information points according to the sequence of the time nodes, and the original position information point of the next time node of the last effective position information point is set as the original position information point of the current time node, wherein P is the number of preset peak values, and P is a positive integer smaller than N.
Specifically, when screening effective position information points for N original position information points is just started, since the vehicle is in a starting stage and the vehicle speed is still relatively low at this time, P original position information points (including the first original position information point as the first effective position information point) are continuously taken as effective position information points to reflect the driving track of the vehicle in the starting stage, and since the first effective position information point at the start is already confirmed in step S201, it is sufficient to take (P-1) effective position information points again in step S202.
It should be noted that P represents the number of preset peaks, and the value of P can be determined according to the time required for the vehicle to start and the uploading frequency of the vehicle-mounted positioning device.
S203: judging whether the distance between the original position information point of the current time node and the original position information point of the last time node is smaller than a preset distance or not;
s204: if the distance between the original position information point of the current time node and the original position information point of the previous time node is smaller than the preset distance, the original position information point of the current time node is omitted, the original position information point of the next time node is set as the original position information point of the current time node, and the step S203 is returned to;
s205: if the distance between the original position information point of the current time node and the original position information point of the previous time node is not less than the preset distance, setting the original position information point of the current time node as an effective position information point, setting the original position information point of the next time node as the original position information point of the current time node, and executing S206;
specifically, in steps S203-S205, after the first P valid position information points are extracted, a reference point needs to be extracted according to a determination method of position relation extraction point, that is, as described in steps S203-S205, an original position information point whose distance from the valid position information point of the previous time node exceeds a preset distance is extracted as the valid position information point of the current time node.
S206: judging whether the distance between the original position information point of the current time node and the original position information point of the previous time node is smaller than a default value or not;
s207: if the distance between the original position information point of the current time node and the original position information point of the previous time node is not less than the default value, setting the original position information point of the current time node as an effective position information point and reserving the effective position information point, setting the original position information point of the next time node as the original position information point of the current time node, and returning to execute the step S206;
specifically, after the reference point is taken out in steps S203-S205, it needs to be determined whether the distance between the effective position information point of the current time node and the original position information point of the previous time node is smaller than a default value; the processing is performed by determining whether to perform the processing by time point sampling or distance point sampling.
It is understood that whether the distance between the original location information of the current time node and the original location information of the previous time node is less than the default value may be regarded as an indication of whether the vehicle is running at a high speed. For example, the default value may be 10 meters, and when the distance between the original location information of two adjacent time nodes is greater than 10 meters, it may indicate that the vehicle has reached the standard for high-speed driving, and a distance point-taking manner may be adopted, otherwise, it may indicate that the vehicle is in low-speed driving, and a time point-taking manner should be adopted. The default values may be set according to actual road conditions or traffic code requirements.
In step S207, if the distance between the original position information point of the current time node and the original position information point of the previous time node is not less than the default value, it indicates that the vehicle is in a high-speed moving state, at this time, the point is taken according to the distance taking manner, and since the distance between the original position information point of the current time node and the original position information point of the previous time node is greater than or equal to the default value, the original position information point of the current time node is reserved as an effective position information point. Therefore, if the automobile keeps running at a high speed all the time, effective position information points with uniform distances are taken out when points are taken, the points with uniform distances are displayed on the user terminal, and the user can know that the automobile runs at a high speed in the distance.
S208: if the distance between the original location information point of the current time node and the original location information point of the previous time node is smaller than the default value, go to step S209;
s209: judging whether the time difference between the original position information point of the current time node and the original position information point of the previous time node is greater than the preset time or not;
s2010: if the time difference between the original position information point of the current time node and the original position information point of the previous time node is less than the preset time, the original position information point of the current time node is omitted, the original position information point of the next time node is set as the original position information point of the current time node, and the step S209 is executed again;
s2011: if the time difference between the original position information point of the current time node and the original position information point of the previous time node is not less than the preset time, setting the original position information point of the current time node as an effective position information point, setting the original position information point of the next time node as the original position information point of the current time node, and returning to execute the step S206;
s2012: and after the N original position information are screened, M effective position information is obtained.
Specifically, if it is determined in step S208 that the distance between the original location information point of the current time node and the original location information point of the previous time node is smaller than the default value, the time point-taking method is adopted. The method may perform point fetching according to the embodiment corresponding to fig. 2 in a manner of point fetching according to time.
If the time difference between the original position information point of the current time node and the original position information point of the previous time node is smaller than the preset time, the original position information point of the current time node is omitted, the original position information point of the next time node is set as the original position information point of the current time node, and then whether the time difference between the original position information point of the current time node and the original position information point of the previous time node is smaller than the preset time or not is continuously judged. If the time difference between the original position information point of the current time node and the original position information point of the previous time node is not less than the preset time, setting the original position information point of the current time node as an effective position information point, setting the original position information point of the next time node as the original position information point of the current time node, returning to the step S206, judging whether the distance between the original position information point of the current time node and the original position information point of the previous time node is less than a default value, and further judging whether the original position information point of the next time node is taken according to time or distance.
If the automobile driving speed is always low, the point is taken by adopting the time point taking method in the step S206, then the steps S208 and S209 are executed, after the steps S2010 and S2011 are executed, one point is taken according to the time point taking method, then the step S206 is returned, the time point taking method is judged again, and then the steps S208, S209, S2010 and S2011 are repeatedly executed. Because the running speed of the automobile is slow, effective position information points with close distances can be screened out according to time point taking, when the effective position information points are displayed on a user terminal, dense effective position information point distribution can be displayed on the road section with the traffic jam, and a user can know that the automobile runs slowly on the road section.
S30: generating a driving track of the vehicle according to the M effective position information points;
specifically, the server may perform punctuation on the map according to the effective position information obtained by the screening, and then generate a driving track of the vehicle.
S40: and when a driving track acquisition instruction sent by the terminal is received, sending the data of the driving track to the terminal.
Specifically, a terminal of a user can establish data communication with a server, the user sends a driving track obtaining instruction to the server through the terminal so as to obtain driving track data from the server, and the server sends the driving track data to the terminal when receiving the driving track obtaining instruction sent by the terminal.
The above method will be explained below by way of an example:
for example, 11 original position information points including a (start point, 0 th S, 0 th meter), B (1 st S, 1 st meter), C (2 nd S, 5 th meter), D (4 th S, 10 th meter), E (5 th S, 21 st meter), F (6 th S, 33 th meter), G (8 th S, 42 th meter), H (10 th S, 47 th meter), I (12 th S, 51 th meter), J (13 th S, 52 th meter), K (16 th S, 53 th meter) are collected.
According to S201, first, a first original position information point a is taken as a first valid position information point. Then according to step S202, then S202 will screen out (P-1) effective location information according to the sequence of the time nodes, assuming that the peak value P is 3, then select 2 effective location information points B and C, and set the original location information point D of the next time node as the original location information point of the current time node. Then, S203 is executed, it is determined whether the distance between the original position information point D of the current position information node and the original position information point C of the previous time node is smaller than a preset distance (assuming that the preset distance is 8 meters), if the determination result is smaller than the preset distance, S204 is executed, the original position information point D of the current time node is discarded, then the original position information point E of the next time node is set as the original position information point of the current time node, S203 is executed again to continue the determination, if the determination result is that the distance between the point C and the point E is greater than the preset distance of 8 meters, S205 is executed, the original position information point E of the current time node is set as an effective position information point, and the original position information point F of the next time node is set as the original position information point of the current time node. Then executing step S206, judging whether the distance between the original position information point F of the current time node and the original position information point E of the previous time node is smaller than a default value (the default value is set to be 10 meters), if the judgment result is that the distance between the points E and F is larger than the default value of 10 meters, executing step S207, setting the original position information point F of the current time node as an effective position information point and reserving the effective position information point, setting the original position information point G of the next time node as the original position information point of the current time node, and returning to execute step S206; then, continuously judging whether the distance between the original position information point G of the current time node and the original position information point F of the previous time node is smaller than a default value or not; if the determination result is greater than the predetermined value, step S207 is executed to set the original location information point G of the current time node as the valid location information point and to keep the same, and to set the original location information point H of the next time node as the original location information point of the current time node, and step S206 is executed to continue to determine whether the distance between the original location information point H of the current time node and the original location information point G of the previous time node is less than the default value. If the determination result is that the distance between the G point and the H point is smaller than the default value, step S208 and step S209 are executed to determine whether the time difference between the original position information point H of the current time node and the original position information point of the previous time node is greater than the preset time (the preset time is set to 4S); if the time difference between the point G and the point H is 2 seconds and is less than the preset time, executing step S2010, omitting the point H of the original position information of the current time node, then setting the point I of the original position information of the next time node as the point of the original position information of the current time node, and returning to execute step S209 to determine again whether the time difference between the point I of the original position information of the current time node and the point G of the original position information of the previous time node is greater than the preset time; if the time difference between the G point and the I point is determined to be 4 seconds and not less than the preset time, step S2011 is executed to set the I point, which is the original position information point of the current time node, as the valid position information point, and set the J point, which is the original position information point of the next time node, as the original position information point of the current time node; returning to execute step S206 to determine whether the distance between the original position information point J of the current time node and the original position information point I of the previous time node is less than the default value; if the distance between the point I and the point J is smaller than the default value, executing steps S208 and S209 to determine whether the time difference between the point J of the original position information of the current time node and the point I of the original position information of the previous time node is greater than the preset time; if the judgment result is that the time difference between the point I and the point J is smaller than the preset time, executing step S2010, omitting the original position information point J of the current time node, setting the original position information point K of the next time node as the original position information point of the current time node, and returning to execute step S209 to judge whether the time difference between the original position information point K of the current time node and the original position information point I of the previous time node is larger than the preset time; if the judgment result is not less than the preset value, reserving the original position information point K of the current time node. Thus, the original location information points are all subjected to the screening processing, A, B, C, E, F, G, I, K points are obtained, and D, H, J points are omitted. In the user's terminal, it can be seen that the distance between A, B, C is relatively close, the user can know that the vehicle is traveling relatively slowly in the distance, and the distance between C, E, F, G is relatively far, the user knows that the vehicle is traveling relatively fast in the distance and the road condition is good, and that the distance between G, I, K is relatively close, the user can know that the vehicle is traveling relatively slow in the distance and the road condition is not good.
After the valid position information points are obtained, the following generation of the driving path and the transmission of the data can be completed according to the steps S30 and S40.
Therefore, the method provided by the embodiment can effectively screen the acquired original position information points, reduce the data transmission quantity and ensure the accuracy of the automobile track path.
[ example 6 ]
Embodiment 6 is based on embodiment 5, and step S2051 is further included between steps S205 and S206: setting a count value, wherein the count value is an integer; in step S207, the current count value is assigned to zero; in step S2011, after the step of setting the original location information point of the next time node as the original location information point of the current time node, obtaining a value of the current count value, adding one to the current count value, and assigning the current count value to the current count value, then determining whether the current count value is greater than a preset peak value, if not, executing step S203, and if the current count value is less than the preset peak value, executing step S206.
Specifically, in a special situation, for example, when the vehicle is very congested and the vehicle can hardly run, the point is continuously taken at the same place in the manner of embodiment 5, which results in too many points to be taken and increases the data transmission amount. Therefore, in order to reduce the data transmission amount, a step S2051 is added between steps S205 and S206 in the present scheme: a count value is set.
In step S207, the current counter is cleared, and then step S2011 is executed, the value of the counter is incremented, and then it is determined whether the counter is smaller than the peak value, and if so, the process returns to step S206. Because the vehicle is in the traffic jam state, after step S206, step S208, step S209, step S2010, and step S2011 are executed in a time point fetching manner, and then the counter value is incremented again until the counter value reaches the preset peak value, that is, until the counter value reaches the valid position information points of the preset peak value number, the counter value is forced to be fetched in a distance point fetching manner, that is, step S203 is executed, and then the vehicle is in the traffic jam state, so that the distance between the original position information point of the current time node and the original position information point of the previous time node is smaller than the preset distance, and therefore, only step S204 can be executed, the point can not be fetched until the traffic jam is finished, and the vehicle resumes the normal point fetching after continuing to travel.
Therefore, under the special condition of traffic jam, the original position information points can be further screened by the method of the embodiment, the original position information points repeatedly acquired by the vehicles at the same place are omitted, and the data transmission quantity is further reduced.
[ example 7 ]
Embodiment 7 provides an embodiment of a driving recording system, as shown in fig. 7, including:
an obtaining module 710, configured to obtain N original location information points sent by a vehicle at N time nodes, where N is a positive integer;
the processing module 720, electrically connected to the obtaining module 710, is configured to perform screening processing on the N original location information points according to the location relationship between the N original location information points and the time relationship between the N original location information points, so as to obtain M effective location information points, where M is a positive integer not greater than N;
the track generation module 730 is electrically connected with the processing module 720 and is used for generating a driving track of the vehicle according to the M effective position information points;
the sending module 740 is configured to send the data of the trajectory to the terminal when receiving the trajectory acquiring instruction sent by the terminal.
Specifically, the specific implementation of the content executed by each module in the driving recording system may refer to the method embodiments 1 to 6, which are not described herein again.
In an embodiment, the processing module 720 is further configured to perform screening processing on the N original location information points according to a location relationship between the N original location information points, so as to obtain a distance effective location information points; screening the N original position information points according to the time relationship among the N original position information points to obtain B time effective position information points; integrating the A distance effective position information points and the B time effective position information points to obtain M effective position information points; wherein A, B is a positive integer.
In an embodiment, when the processing module 720 performs a screening operation on the N original location information points according to the location relationship between the N original location information points, the processing module 720 is specifically configured to perform: s211 a: judging whether an angle between a driving direction corresponding to the original position information point of the current time node and a driving direction corresponding to the original position information point of the last time node is smaller than a preset angle or not; s212 a: if the current time node is smaller than the current time node, the original position information point of the current time node is omitted, the original position information point of the next time node is set as the original position information point of the current time node, and the step S211a is returned to be executed until all the N original position information are screened; if not, the step S213a sets the original location information point of the current time node as the valid location information point, and sets the original location information point of the next time node as the original location information point of the current time node; the process returns to step S211a until all the N pieces of original location information have been filtered.
In an embodiment, when the processing module 720 performs a screening operation on the N original location information points according to the location relationship between the N original location information points, the processing module 720 is specifically configured to: s211 b: judging whether the distance between the original position information point of the current time node and the original position information point of the last time node is smaller than a preset distance or not; s212 b: if the current time node is smaller than the preset time node, the original position information point of the current time node is omitted, and the original position information point of the next time node is set as the original position information point of the current time node; returning to step S211b until all the N original location information are filtered; s213 b: if not, setting the original position information point of the current time node as an effective position information point, and setting the original position information point of the next time node as the original position information point of the current time node; the process returns to step S211b until all the N pieces of original location information have been filtered.
In an embodiment, when the processing module 720 performs the screening processing on the N original location information points according to the location relationship between the N original location information points and the time relationship between the N original location information points to obtain M effective location information points, the following steps are specifically performed: s201: selecting a first original position information point from the N original position information points according to the sequence of the time nodes as a first effective position information point; s202: screening (P-1) effective position information points from the N original position information points according to the sequence of the time nodes, and setting the original position information point of the next time node of the last effective position information point as the original position information point of the current time node, wherein P is a preset peak value and P is a positive integer smaller than N; s203: judging whether the distance between the original position information point of the current time node and the original position information point of the last time node is smaller than a preset distance or not; s204: if the distance between the original position information point of the current time node and the original position information point of the previous time node is smaller than the preset distance, the original position information point of the current time node is omitted, the original position information point of the next time node is set as the original position information point of the current time node, and the step S203 is returned to; s205: if the distance between the original position information point of the current time node and the original position information point of the previous time node is not less than the preset distance, setting the original position information point of the current time node as an effective position information point, setting the original position information point of the next time node as the original position information point of the current time node, and executing S206; s206: judging whether the distance between the original position information point of the current time node and the original position information point of the previous time node is smaller than a default value or not; s207: if the distance between the original position information point of the current time node and the original position information point of the previous time node is not less than the default value, setting the original position information point of the current time node as an effective position information point and reserving the effective position information point, setting the original position information point of the next time node as the original position information point of the current time node, and returning to execute the step S206; s208: if the distance between the original location information point of the current time node and the original location information point of the previous time node is smaller than the default value, go to step S209; s209: judging whether the time difference between the original position information point of the current time node and the original position information point of the previous time node is greater than the preset time or not; s2010: if the time difference between the original position information point of the current time node and the original position information point of the previous time node is less than the preset time, the original position information point of the current time node is omitted, the original position information point of the next time node is set as the original position information point of the current time node, and the step S209 is executed again; s2011: if the time difference between the original position information point of the current time node and the original position information point of the previous time node is not less than the preset time, setting the original position information point of the current time node as an effective position information point, and setting the original position information point of the next time node as the original position information point of the current time node; returning to execute step S206; and after the N original position information are screened, M effective position information is obtained.
In one embodiment, step S2051 is further included between steps S205 and S206: setting a count value, wherein the count value is an integer; in step S207, the current count value is assigned to zero; in step S2011, after the step of setting the original location information point of the next time node as the original location information point of the current time node, obtaining a value of the current count value, adding one to the current count value, and assigning the current count value to the current count value, then determining whether the current count value is smaller than the preset peak value, if not smaller than the preset peak value, executing step S203, and if smaller than the preset peak value, executing step S206.
[ example 7 ]
Embodiment 7 discloses a computer device for implementing the driving recording method of embodiments 1 to 6, as shown in fig. 8, a computer device 800 includes a processor 810 and a memory 820, wherein the memory 820 is used for storing a computer program; a processor 810 for executing computer programs stored on the memory 820.
Fig. 6 is a schematic structural diagram of a computer device 800 according to an embodiment of the present invention. Referring to fig. 6, the computer device 800 includes a processor 810 and a memory 820, and may further include a communication interface 840 and a communication bus 850, and may further include an input/output interface 830, wherein the processor 810, the memory 820, the input/output interface 830 and the communication interface 840 communicate with each other through the communication bus 850. The memory 820 stores computer programs, and the processor 810 is configured to execute the computer programs stored in the memory 820.
A communication bus 850 is a circuit that connects the elements described and enables transmissions between these elements. For example, the processor 810 receives commands from other elements through the communication bus 850, decrypts the received commands, and performs calculations or driving recording according to the decrypted commands. The memory 820 may include program modules such as a kernel (kernel), middleware (middleware), an Application Programming Interface (API), and applications. The program modules may be comprised of software, firmware or hardware, or at least two of the same. The input/output interface 830 forwards commands or data input by a user through an input/output device (e.g., sensor, keyboard, touch screen). Communication interface 840 connects computer device 800 with other network devices, user devices, and networks. For example, communication interface 840 may connect to a network via a wired or wireless connection to external other network devices or user devices. The wireless communication may include at least one of: wireless fidelity (WiFi), Bluetooth (BT), Near Field Communication (NFC), Global Positioning Satellite (GPS) and cellular communications, among others. The wired communication may include at least one of: universal Serial Bus (USB), high-definition multimedia interface (HDMI), asynchronous transfer standard interface (RS-232), and the like. The network may be a telecommunications network and a communications network. The communication network may be a computer network, the internet of things, a telephone network. Computer device 800 may connect to a network through communication interface 840, and protocols by which computer device 800 communicates with other network devices may be supported by at least one of applications, Application Programming Interfaces (APIs), middleware, kernels, and communication interface 840.
[ example 8 ]
Embodiment 8 discloses a specific implementation manner of a storage medium, in which at least one instruction is stored, and the instruction is loaded and executed by a processor to implement the operations performed by the driving recording methods of the foregoing embodiments 1 to 6. For example, the computer readable storage medium may be a read-only memory (ROM), a random-access memory (RAM), a compact disc read-only memory (CD-ROM), a magnetic tape, a floppy disk, an optical data storage device, and the like.
They may be implemented in program code that is executable by a computing device such that it is executed by the computing device, or separately, or as individual integrated circuit modules, or as a plurality or steps of individual integrated circuit modules. Thus, the present invention is not limited to any specific combination of hardware and software.

Claims (10)

1. A method of driving recording, the method comprising:
s10: acquiring N original position information points sent by a vehicle at N time nodes, wherein N is a positive integer;
s20: screening the N original position information points according to the position relation among the N original position information points and the time relation among the N original position information points to obtain M effective position information points; m is a positive integer not greater than N;
s30: generating a driving track of the vehicle according to the M effective position information points;
s40: and when a driving track acquisition instruction sent by a terminal is received, sending the data of the driving track to the terminal.
2. The driving recording method according to claim 1, wherein the step S20 specifically includes the steps of:
s21: screening the N original position information points according to the position relation among the N original position information points to obtain A distance effective position information points;
s22: screening the N original position information points according to the time relationship among the N original position information points to obtain B time effective position information points;
s23: integrating the A distance effective position information points and the B time effective position information points to obtain M effective position information points; wherein A, B is a positive integer.
3. The driving recording method according to claim 2, wherein the step S21 specifically includes the steps of:
s211 a: judging whether an angle between a driving direction corresponding to the original position information point of the current time node and a driving direction corresponding to the original position information point of the last time node is smaller than a preset angle or not;
s212 a: if the current time node is smaller than the current time node, the original position information point of the current time node is discarded, the original position information point of the next time node is set as the original position information point of the current time node, and the step S211a is returned to be executed until all the N original position information are screened;
if not, the step S213a sets the original location information point of the current time node as the valid location information point, and sets the original location information point of the next time node as the original location information point of the current time node; the step S211a is executed again until all the N original location information filtering processes are completed.
4. The driving recording method according to claim 2, wherein the step S21 specifically includes the steps of:
s211 b: judging whether the distance between the original position information point of the current time node and the original position information point of the last time node is smaller than a preset distance or not;
s212 b: if the current time node is smaller than the preset time node, the original position information point of the current time node is omitted, and the original position information point of the next time node is set as the original position information point of the current time node; returning to execute the step S211b until all the N original location information are filtered;
s213 b: if not, setting the original position information point of the current time node as an effective position information point, and setting the original position information point of the next time node as the original position information point of the current time node; the step S211b is executed again until all the N original location information filtering processes are completed.
5. The driving recording method according to claim 2, wherein the step S22 specifically includes the steps of:
s221 a: judging whether the time difference between the original position information point of the current time node and the original position information point of the previous time node is less than the preset time or not;
s222 a: if the current time node is smaller than the preset time node, the original position information point of the current time node is omitted, and the original position information point of the next time node is set as the original position information point of the current time node; returning to execute the step S221a until all the N original location information are filtered;
s223 a: if not, setting the original position information point of the current time node as an effective position information point, and setting the original position information point of the next time node as the original position information point of the current time node; the step S221a is executed again until all the N pieces of original location information are filtered.
6. The driving recording method according to claim 1, wherein the step S20 specifically includes the steps of:
s201: selecting a first original position information point from the N original position information points according to the sequence of the time nodes as a first effective position information point;
s202: screening (P-1) effective position information points from the N original position information points according to the sequence of the time nodes, and setting the original position information point of the next time node of the last effective position information point as the original position information point of the current time node, wherein P is the number of preset peak values and is a positive integer less than N;
s203: judging whether the distance between the original position information point of the current time node and the original position information point of the last time node is smaller than a preset distance or not;
s204: if the distance between the original position information point of the current time node and the original position information point of the previous time node is smaller than the preset distance, the original position information point of the current time node is omitted, the original position information point of the next time node is set as the original position information point of the current time node, and the step S203 is returned to;
s205: if the distance between the original position information point of the current time node and the original position information point of the previous time node is not less than the preset distance, setting the original position information point of the current time node as an effective position information point, setting the original position information point of the next time node as the original position information point of the current time node, and executing S206;
s206: judging whether the distance between the original position information point of the current time node and the original position information point of the previous time node is smaller than a default value or not;
s207: if the distance between the original position information point of the current time node and the original position information point of the previous time node is not less than the default value, setting the original position information point of the current time node as an effective position information point and reserving the effective position information point, setting the original position information point of the next time node as the original position information point of the current time node, and returning to execute the step S206;
s208: if the distance between the original location information point of the current time node and the original location information point of the previous time node is smaller than the default value, go to step S209;
s209: judging whether the time difference between the original position information point of the current time node and the original position information point of the previous time node is greater than the preset time or not;
s2010: if the time difference between the original position information point of the current time node and the original position information point of the previous time node is less than the preset time, the original position information point of the current time node is omitted, the original position information point of the next time node is set as the original position information point of the current time node, and the step S209 is executed again;
s2011: if the time difference between the original position information point of the current time node and the original position information point of the previous time node is not less than the preset time, setting the original position information point of the current time node as an effective position information point, and setting the original position information point of the next time node as the original position information point of the current time node; returning to execute step S206;
s2012: and after the N original position information are screened, M effective position information is obtained.
7. The driving recording method according to claim 6, wherein:
the steps S205 and S206 further include step S2051: setting a count value, wherein the count value is an integer;
in step S207, assigning the current count value to zero;
in step S2011, after the step of setting the original location information point of the next time node as the original location information point of the current time node, obtaining a value of the current count value, adding one to the current count value, and assigning a value to the current count value, then determining whether the current count value is smaller than a preset peak value, if not, executing step S203, and if so, executing step S206.
8. A driving recording system for implementing the driving recording method according to any one of claims 1-7, characterized by comprising:
the system comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring N original position information points sent by a vehicle at N time nodes, and N is a positive integer;
the processing module is used for screening the N original position information points according to the position relation among the N original position information points and the time relation among the N original position information points to obtain M effective position information points; m is a positive integer not greater than N;
the track generation module is used for generating a driving track of the vehicle according to the M effective position information points;
and the sending module is used for sending the data of the driving track to the terminal when receiving the driving track obtaining instruction sent by the terminal.
9. A computer device for implementing the driving recording method according to any one of claims 1 to 7, comprising:
a processor and a memory;
wherein the memory is used for storing computer programs;
the processor is configured to execute the computer program stored on the memory.
10. A storage medium having stored therein at least one instruction, which is loaded and executed by a processor to perform the operations of the vehicle recording method according to any one of claims 1 to 7.
CN202010385438.1A 2020-05-09 2020-05-09 Driving recording method, driving recording system, computer device and storage medium Active CN111524253B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010385438.1A CN111524253B (en) 2020-05-09 2020-05-09 Driving recording method, driving recording system, computer device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010385438.1A CN111524253B (en) 2020-05-09 2020-05-09 Driving recording method, driving recording system, computer device and storage medium

Publications (2)

Publication Number Publication Date
CN111524253A true CN111524253A (en) 2020-08-11
CN111524253B CN111524253B (en) 2021-12-17

Family

ID=71906940

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010385438.1A Active CN111524253B (en) 2020-05-09 2020-05-09 Driving recording method, driving recording system, computer device and storage medium

Country Status (1)

Country Link
CN (1) CN111524253B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011209268A (en) * 2010-03-10 2011-10-20 Toyota Central R&D Labs Inc Position estimating device and program
CN103809194A (en) * 2014-02-13 2014-05-21 上海温光自动化技术有限公司 Method and device for displaying GPS trajectory curve
CN105357641A (en) * 2015-11-18 2016-02-24 广东欧珀移动通信有限公司 Position updating control method and user terminal
CN106297280A (en) * 2015-05-22 2017-01-04 高德软件有限公司 A kind of information processing method and device
CN106355927A (en) * 2016-08-30 2017-01-25 成都路行通信息技术有限公司 GPS (global positioning system) mark point determining method as well as GPS trajectory optimization method and device
CN108897022A (en) * 2018-07-03 2018-11-27 深圳第蓝筹科技有限公司 A kind of track accurate positioning method and system based on GPS
CN110751751A (en) * 2019-10-09 2020-02-04 广州敏视数码科技有限公司 Driving track recording method

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011209268A (en) * 2010-03-10 2011-10-20 Toyota Central R&D Labs Inc Position estimating device and program
CN103809194A (en) * 2014-02-13 2014-05-21 上海温光自动化技术有限公司 Method and device for displaying GPS trajectory curve
CN106297280A (en) * 2015-05-22 2017-01-04 高德软件有限公司 A kind of information processing method and device
CN105357641A (en) * 2015-11-18 2016-02-24 广东欧珀移动通信有限公司 Position updating control method and user terminal
CN106355927A (en) * 2016-08-30 2017-01-25 成都路行通信息技术有限公司 GPS (global positioning system) mark point determining method as well as GPS trajectory optimization method and device
CN108897022A (en) * 2018-07-03 2018-11-27 深圳第蓝筹科技有限公司 A kind of track accurate positioning method and system based on GPS
CN110751751A (en) * 2019-10-09 2020-02-04 广州敏视数码科技有限公司 Driving track recording method

Also Published As

Publication number Publication date
CN111524253B (en) 2021-12-17

Similar Documents

Publication Publication Date Title
US9847024B2 (en) Methods and systems for providing a traffic congestion warning
CN111024109A (en) Apparatus, system and method for collecting points of interest in a navigation system
CN108696558B (en) Position information processing method and device
CN103373292A (en) In-car information system, information terminal, and application execution method
WO2022262380A1 (en) Screen projection method, screen projection apparatus, electronic device, head unit, and screen projection system
CN111882907B (en) Navigation early warning method, device, equipment and storage medium for vehicle
EP3041211A1 (en) Vehicle-mounted device, communication system, communication method, and program
CN104994130A (en) Driving information sharing system and realization method thereof
JP5115072B2 (en) Advice providing system
JP2021009623A (en) Driving environment monitoring device, driving environment monitoring system, and driving environment monitoring program
CN105091894A (en) Navigation method, intelligent terminal device and wearable device
JP2005269520A (en) Operation method of vehicle-mounted information terminal, vehicle-mounted information terminal, portable terminal program, and mobile phone
CN114333404A (en) Vehicle searching method and device for parking lot, vehicle and storage medium
CN111524253B (en) Driving recording method, driving recording system, computer device and storage medium
JP2005265572A (en) Operation method for on-vehicle information terminal, on-vehicle information terminal, program for portable terminal, and portable phone
CN112833880A (en) Vehicle positioning method, positioning device, storage medium, and computer program product
CN110060477B (en) Method and device for pushing information
CN111866880A (en) Information pushing method and device, electronic equipment and storage medium
JP7351805B2 (en) Information processing method, program, in-vehicle device, and vehicle
CN111735461B (en) Method and device for processing running track and electronic equipment
CN114199274A (en) Vehicle travel determining method, device and equipment and readable storage medium
CN111770472A (en) Vehicle positioning method and device, vehicle, storage medium and terminal
JP3786019B2 (en) In-vehicle terminal device and distribution server
CN113778633A (en) Operation control method and device of vehicle machine
CN111145576A (en) Vehicle searching method and related equipment

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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: Floor 16, unit 1, building 1, Jingwei center, No.29, west section of Xijin Road, Jingwei new city, Xi'an Economic and Technological Development Zone, Shaanxi 710200

Applicant after: Deyin Tianxia Co.,Ltd.

Address before: 710200 16 / F, unit 1, building 1, Jingwei center, No.29, west section of Xijin Road, Jingwei new city, Xi'an Economic and Technological Development Zone, Xi'an City, Shaanxi Province

Applicant before: Deyintianxia Investment Holding Co.,Ltd.

GR01 Patent grant
GR01 Patent grant