CN109889990B - Method, device and equipment for triggering recording when vehicles enter and exit from fence and storage medium - Google Patents

Method, device and equipment for triggering recording when vehicles enter and exit from fence and storage medium Download PDF

Info

Publication number
CN109889990B
CN109889990B CN201910047261.1A CN201910047261A CN109889990B CN 109889990 B CN109889990 B CN 109889990B CN 201910047261 A CN201910047261 A CN 201910047261A CN 109889990 B CN109889990 B CN 109889990B
Authority
CN
China
Prior art keywords
preset
vehicle
fence
distance
current
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910047261.1A
Other languages
Chinese (zh)
Other versions
CN109889990A (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.)
Chongqing Rongchang ChuanHua smart Park Management Service Co.,Ltd.
Original Assignee
Zhejiang Shulian Technology 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 Zhejiang Shulian Technology Co ltd filed Critical Zhejiang Shulian Technology Co ltd
Priority to CN201910047261.1A priority Critical patent/CN109889990B/en
Publication of CN109889990A publication Critical patent/CN109889990A/en
Application granted granted Critical
Publication of CN109889990B publication Critical patent/CN109889990B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The application relates to a method, a device, equipment and a storage medium for triggering and recording when a vehicle enters and exits a fence. The method comprises the following steps: the method comprises the steps of obtaining a current first position and a destination position of a vehicle when the vehicle drives to a preset fence; calculating a first linear distance between a current first position of the vehicle and a destination position; obtaining a first time length of the current first position of the vehicle reaching the destination position according to the first straight-line distance; when the first straight-line distance is not greater than a preset first distance, determining that a vehicle enters the preset fence, and recording the starting time of the first time length as the time when the vehicle enters the preset fence, wherein the preset first distance is the shortest distance between a destination position and the preset fence, and the destination position is at the center position of the preset fence. By using the method, the phenomenon that the vehicles enter and exit the fence without triggering can be avoided, and meanwhile, the performance requirement of the system can be reduced.

Description

Method, device and equipment for triggering recording when vehicles enter and exit from fence and storage medium
Technical Field
The present application relates to the field of internet technologies, and in particular, to a method, an apparatus, a device, and a storage medium for triggering recording when a vehicle enters or exits a fence.
Background
Along with the rapid development of the internet technology, the electronic fence technology is also developed more and more rapidly, and the electronic fence can effectively set a parking available area and a parking forbidden area for a vehicle, so that a vehicle owner can park according to the standard, and unnecessary loss is avoided. Therefore, it is very important to know whether the vehicle enters or exits the electronic fence during the operation of the vehicle.
In the actual running process of the vehicle, a positioning module on the vehicle can report the longitude and latitude information of the vehicle to a server in real time, the server calculates the current position of the vehicle according to the current longitude and latitude information of the vehicle, starts a timing task, and judges the conditions of the vehicle entering and exiting the fence at the same time interval each time.
However, when the method judges that the vehicle enters or exits the fence, the judgment is carried out at the same time interval, so that the problem that the vehicle enters the fence without triggering exists.
Disclosure of Invention
Therefore, it is necessary to provide a method, an apparatus, a device and a storage medium for triggering and recording when a vehicle enters or exits a fence, in order to solve the problem that the overall performance of a server is reduced by reporting longitude and latitude information of the vehicle at each moment to the server for judgment when judging whether the vehicle enters or exits the fence.
In a first aspect, an embodiment of the present application provides a method for triggering recording of entry and exit of a vehicle into and out of a fence, where the method includes:
the method comprises the steps of obtaining a current first position and a destination position of a vehicle when the vehicle drives to a preset fence;
calculating a first linear distance between a current first position of the vehicle and a destination position;
obtaining a first time length of the current first position of the vehicle reaching the destination position according to the first straight-line distance;
when the first straight-line distance is not greater than a preset first distance, determining that a vehicle enters the preset fence, and recording the starting time of the first time length as the time when the vehicle enters the preset fence, wherein the preset first distance is the shortest distance between a destination position and the preset fence, and the destination position is at the center position of the preset fence.
In one embodiment, the method further comprises:
and when the first straight-line distance is greater than a preset first distance, delaying the first time, and then returning to the step of acquiring the current first position and the destination position of the vehicle when the vehicle drives to a preset fence.
In one embodiment, after determining that the vehicle enters the preset fence, the method further includes:
acquiring a current second position of a vehicle when the vehicle drives out of a preset fence;
calculating a second linear distance between a current second position of the vehicle and the destination position;
and when the second straight-line distance is greater than a preset second distance, determining that the vehicle leaves the preset fence, wherein the preset second distance is the longest distance between the destination position and the preset fence.
In one embodiment, the method further comprises:
when the second straight-line distance is not greater than the preset second distance, delaying the preset second time, and returning to the step of acquiring the current second position of the vehicle when the vehicle is driven out of the preset fence; and when the vehicle is determined to leave the preset fence, recording the end time of the second time length as the time when the vehicle leaves the preset fence.
In one embodiment, the predetermined fence is a circular fence or a polygonal fence.
In one embodiment, the preset second time period ranges from 5 seconds to 15 seconds.
In one embodiment, the obtaining a first time duration for the current first position of the vehicle to reach the destination position according to the first linear distance includes:
and obtaining a first time length of the current first position of the vehicle reaching the destination position according to a ratio of the first linear distance to a preset speed, wherein the preset speed ranges from 50 km/h to 120 km/h.
In a second aspect, an embodiment of the present application provides a vehicle entry and exit fence trigger recording apparatus, where the apparatus includes:
the system comprises an acquisition module, a processing module and a control module, wherein the acquisition module is used for acquiring a current first position and a destination position of a vehicle when the vehicle drives to a preset fence;
a calculation module for calculating a first linear distance between a current first position of the vehicle and a destination position;
the first determining module is used for obtaining a first time length of the current first position of the vehicle reaching the destination position according to the first linear distance;
the second determining module is configured to determine that the vehicle enters the preset fence when the first linear distance is not greater than a preset first distance, and record a start time of the first duration as a time when the vehicle enters the preset fence, where the preset first distance is a shortest distance between a destination position and the preset fence, and the destination position is at a center position of the preset fence.
In a third aspect, an embodiment of the present application provides a computer device, including: a memory storing a computer program and a processor implementing the following steps when the processor executes the computer program:
the method comprises the steps of obtaining a current first position and a destination position of a vehicle when the vehicle drives to a preset fence;
calculating a first linear distance between a current first position of the vehicle and a destination position;
obtaining a first time length of the current first position of the vehicle reaching the destination position according to the first straight-line distance;
when the first straight-line distance is not greater than a preset first distance, determining that a vehicle enters the preset fence, and recording the starting time of the first time length as the time when the vehicle enters the preset fence, wherein the preset first distance is the shortest distance between a destination position and the preset fence, and the destination position is at the center position of the preset fence.
In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the following steps:
the method comprises the steps of obtaining a current first position and a destination position of a vehicle when the vehicle drives to a preset fence;
calculating a first linear distance between a current first position of the vehicle and a destination position;
obtaining a first time length of the current first position of the vehicle reaching the destination position according to the first straight-line distance;
when the first straight-line distance is not greater than a preset first distance, determining that a vehicle enters the preset fence, and recording the starting time of the first time length as the time when the vehicle enters the preset fence, wherein the preset first distance is the shortest distance between a destination position and the preset fence, and the destination position is at the center position of the preset fence.
According to the method, the device, the equipment and the storage medium for triggering and recording the vehicle to enter and exit the fence, firstly, when the vehicle drives to the preset fence, the current first position and the destination position of the vehicle are obtained, then, the first linear distance between the current first position of the vehicle and the destination position is calculated, then, the first duration between the current first position of the vehicle and the destination position is calculated according to the first linear distance, finally, the first linear distance is compared with the preset first distance, wherein the preset first distance is the shortest distance between the destination position and the preset fence, the destination position is located at the center position of the preset fence, when the first linear distance is not larger than the preset first distance, the vehicle can be determined to enter the preset fence, and the starting time of the first duration is recorded as the time for the vehicle to enter the preset fence. In this embodiment, since the first linear distance between the current position and the destination position of the vehicle is compared with the preset first distance, when the first linear distance is not greater than the preset first distance, it is determined that the vehicle enters the preset fence, and the start time of the first duration obtained through calculation is recorded as the time when the vehicle enters the preset fence, so that the method can record the time when the vehicle enters the fence, and the phenomenon that the recording is not triggered when the vehicle enters the fence can be avoided to a certain extent.
Drawings
FIG. 1 is a schematic diagram of a computer device, according to an embodiment;
FIG. 2 is a schematic flow chart of a vehicle ingress and egress fence triggering method according to an embodiment;
fig. 3 is a schematic flow chart of a vehicle entry and exit fence triggering method according to another embodiment;
fig. 4 is a schematic flow chart of a vehicle entry and exit fence triggering method according to another embodiment;
FIG. 5 is a schematic flow chart illustrating a method for triggering entry and exit of a vehicle into and out of a fence according to another embodiment;
FIG. 6 is a flowchart illustrating a method for triggering entry and exit of a vehicle into and out of a fence according to one embodiment;
fig. 7 is a schematic structural diagram of a vehicle access fence triggering device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The method for triggering and recording the entrance and exit of the vehicle into the fence can be applied to the computer equipment shown in fig. 1. As shown in fig. 1, the computer apparatus includes a processor, a memory, a network interface, a display screen, and an input device, which are connected through a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The network interface of the computer device is used for communicating with an external computer through a network connection. The computer program is executed by a processor to implement a vehicle ingress and egress fence trigger recording method. Optionally, the display screen of the computer device may be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device may be a touch layer covered on the display screen, a key, a trackball or a touch pad arranged on a casing of the computer device, or an external keyboard, a touch pad or a mouse.
It should be noted that the structure shown in fig. 1 is a block diagram of only a part of the structure related to the present application, and does not constitute a limitation on the computer device to which the present application is applied, and a specific computer device may include more or less components than those shown in the drawings, or combine some components, or have a different arrangement of components.
In the traditional technology, in the actual running process of a vehicle, a positioning module on the vehicle can report longitude and latitude information of the vehicle to a server in real time, the server calculates the current position of the vehicle according to the current longitude and latitude information of the vehicle, and then the distance between the current position of the vehicle and an electronic fence is judged, so that whether the vehicle enters or exits the fence is obtained. However, when the method is used for judging whether the vehicle enters or exits the fence, the longitude and latitude information of the vehicle at each moment needs to be reported to the server for judgment, and the overall performance of the server is reduced. The embodiment of the application provides a method, a device, equipment and a storage medium for triggering and recording when a vehicle enters and exits a fence, and aims to solve the technical problems in the prior art.
It should be noted that the execution subject of the following method embodiments may be a vehicle access fence triggering device, and the vehicle access fence triggering device may be implemented as part or all of the above computer device by software, hardware, or a combination of software and hardware. The method embodiments described below are described by way of example with the execution subject being a computer device.
Fig. 2 is a flowchart illustrating a method for triggering entry and exit of a vehicle into and out of a fence according to an embodiment. The embodiment relates to a specific process of determining that a vehicle enters a preset fence according to the current position and the destination position of the vehicle by a computer device. As shown in fig. 2, the method may include the steps of:
s201, acquiring a current first position and a current destination position of a vehicle when the vehicle drives to a preset fence.
The destination position refers to a position to which the vehicle finally arrives, and the preset fence refers to an electronic fence which is generated by the computer device in advance according to the destination position and comprises the destination position. Optionally, the preset fence may be a circular fence or a polygonal fence. The circular fence refers to a circular electronic fence which is generated by computer equipment according to a destination position, takes the destination position as a circle center, and takes a preset length as a radius, wherein the preset length can be determined according to an actual situation, and can be 1 kilometer, 2 kilometers and the like. The polygonal fence refers to a polygonal electronic fence which is generated by a computer device according to a destination position and a preset map component and comprises the destination position. Optionally, the number of the sides of the polygonal fence may be determined according to actual situations, and may be a quadrangular fence, a pentagonal electronic fence, or the like, which is not limited in this embodiment. Alternatively, the preset map component may be a height map, a Baidu map, or the like.
Specifically, when the vehicle is driven to the preset fence, the vehicle and the destination may be scanned by using a Geographic Information System (GIS) to obtain longitude and latitude Information of the current position of the vehicle and longitude and latitude Information of the destination position, and the longitude and latitude Information of the destination position of the vehicle is transmitted to the computer device.
S202, calculating a first straight-line distance between a current first position and a destination position of the vehicle.
The vehicle is driven from the current first position to the destination position, the driving path may be a straight line or a curve, and the straight line between the two points is the shortest. Thus, the computer device calculates a first linear distance between the current first position of the vehicle and the destination position, and the resulting distance is then the shortest.
Specifically, after obtaining the current first location and the destination location of the vehicle, the computer device may calculate a first linear distance between the current first location and the destination location of the vehicle using the map component.
S203, obtaining a first time length of the current first position of the vehicle reaching the destination position according to the first straight-line distance.
Optionally, the computer device may obtain a first time period for the current first position of the vehicle to reach the destination position according to a ratio of the first linear distance to a preset speed, where the preset speed is in a range from 50 km/h to 120 km/h.
And S204, when the first straight-line distance is not greater than a preset first distance, determining that the vehicle enters the preset fence, and recording the starting time of the first time length as the time when the vehicle enters the preset fence, wherein the preset first distance is the shortest distance between a destination position and the preset fence, and the destination position is at the center position of the preset fence.
The destination position is located at the center position of the preset fence, and when the preset fence is a circular fence, the preset first distance is the radius of the circular fence; when the preset fence is a polygonal fence, the preset first distance is the shortest distance between the destination position and each edge of the polygonal fence, so that when a vehicle enters the fence from any direction of the preset fence, the judgment can be carried out by using the preset first distance. In addition, the first duration has a start time and an end time, the start time is a current time when the computer device calculates the first duration, and the end time refers to a current time when the computer device waits for the first duration.
Specifically, after obtaining the first linear distance, the computer device may compare the first linear distance with a preset first distance, and when the first linear distance is not greater than the preset first distance, that is, when the first linear distance is less than or equal to the preset first distance, the computer device may determine that the vehicle enters the preset fence. At this time, the computer device does not need to record the first time length, and can directly record the starting time of the first time length as the time when the vehicle enters the preset fence.
The method for triggering the vehicle to enter and exit the fence includes the steps of obtaining a current first position and a destination position of the vehicle when the vehicle drives to a preset fence, calculating a first linear distance between the current first position of the vehicle and the destination position, calculating a first duration between the current first position of the vehicle and the destination position according to the first linear distance, and comparing the first linear distance with a preset first distance, wherein the preset first distance is a shortest distance between the destination position and the preset fence, the destination position is located at a center position of the preset fence, and when the first linear distance is not greater than the preset first distance, determining that the vehicle enters the preset fence, and recording a start time of the first duration as a time when the vehicle enters the preset fence. In this embodiment, since the first linear distance between the current position and the destination position of the vehicle is compared with the preset first distance, when the first linear distance is not greater than the preset first distance, it is determined that the vehicle enters the preset fence, and the start time of the first duration obtained through calculation is recorded as the time when the vehicle enters the preset fence, so that the method can record the time when the vehicle enters the fence, and the phenomenon that the recording is not triggered when the vehicle enters the fence can be avoided to a certain extent.
Fig. 3 is a flowchart illustrating a method for triggering entry and exit of a vehicle into and out of a fence according to another embodiment. The embodiment relates to a specific process that when the computer device determines that the first linear distance is greater than the preset first distance, the computer device needs to delay for a period of time and then execute the step of S201. On the basis of the above embodiment, as shown in fig. 3, the method may further include the steps of:
s205, when the first straight-line distance is larger than a preset first distance, delaying the first time, and then returning to the step of acquiring the current first position and the destination position of the vehicle when the vehicle drives to a preset fence.
Specifically, when the computer device compares the first linear distance with a preset first distance, and when the first linear distance is greater than the preset first distance, the computer device determines that the vehicle does not enter the preset fence, delays the first duration obtained by the calculation, and then returns to the step of executing the step S201.
When the step S201 is executed, the computer device obtains a new current first position of the vehicle again, calculates a new first linear distance, obtains a new first time length, compares the new first linear distance with the preset first distance, determines that the vehicle enters the preset fence when the new first linear distance is not greater than the preset first distance, and records a start time of the new first time length as a time when the vehicle enters the preset fence.
Wherein, the new first duration and the first duration may not be the same in size.
In the triggering method for the vehicle to enter and exit the fence provided by the embodiment, when the first straight-line distance is greater than the preset first distance, the first duration is delayed, and the step of acquiring the current first position and the current destination position of the vehicle when the vehicle drives to the preset fence is continuously executed. In this embodiment, since the current position of the vehicle at each time does not need to be collected to calculate the first linear distance, and the first linear distance is sent to the computer device to be compared with the preset first distance for judgment, the judgment times are small, and the calculation amount is small, the method does not need the computer device to have high performance, that is, the method can reduce the performance requirement of the computer device to a certain extent.
Fig. 4 is a flowchart illustrating a method for triggering entry and exit of a vehicle into and out of a fence according to another embodiment. The embodiment relates to a specific process of determining that a vehicle leaves a preset fence after the computer device determines that the vehicle enters the preset fence. On the basis of the above embodiment, as shown in fig. 4, the method may further include the steps of:
s401, acquiring a current second position of the vehicle when the vehicle is driven out of a preset fence.
Specifically, after the vehicle is operated at the destination position in the preset fence, the vehicle can exit the preset fence, when the vehicle exits, the geographic information system can be used for scanning the vehicle and the destination to obtain longitude and latitude information of the current position of the vehicle and longitude and latitude information of the destination position, the longitude and latitude information of the current position of the vehicle and the longitude and latitude information of the destination position are transmitted to the computer device, the computer device can obtain the current position and the destination position of the vehicle by calculating the longitude and latitude information of the current position of the vehicle and the longitude and latitude information of the destination position, and the current position of the vehicle is recorded as a current second position of the vehicle.
S402, calculating a second straight-line distance between the current second position of the vehicle and the destination position.
Specifically, after obtaining the current second position and the destination position of the vehicle, the computer device may calculate a second straight-line distance between the current second position and the destination position of the vehicle by using the map component.
And S403, when the second straight-line distance is greater than a preset second distance, determining that the vehicle leaves the preset fence, wherein the preset second distance is the longest distance between the destination position and the preset fence.
The preset second distance is the longest distance between the destination position and the preset fence, so that the vehicle can be judged by utilizing the preset second distance when leaving the preset fence from any direction of the preset fence.
Specifically, after obtaining the second linear distance, the computer device may compare the second linear distance with a preset second distance, and when the second linear distance is greater than the preset second distance, the computer device may determine that the vehicle leaves the preset fence.
The method for triggering the vehicle to enter and exit the fence includes first obtaining a current second position of the vehicle when the vehicle exits the preset fence, then calculating a second linear distance between the current second position of the vehicle and a destination position, and finally comparing the second linear distance with the preset second distance, and when the second linear distance is greater than the preset second distance, determining that the vehicle leaves the preset fence. In this embodiment, since the second straight-line distance between the current position and the destination position of the vehicle is compared with the preset second distance, and when the second straight-line distance is greater than the preset first distance, it is determined that the vehicle leaves the preset fence, the method can know whether the vehicle leaves the preset fence.
Fig. 5 is a flowchart illustrating a method for triggering entry and exit of a vehicle into and out of a fence according to another embodiment. The embodiment relates to a specific process that when the computer device determines that the second straight-line distance is not greater than the preset second distance, the computer device needs to delay for a period of time and then execute the step of S401. On the basis of the above embodiment, as shown in fig. 5, the method may further include the steps of:
s404, when the second straight-line distance is not greater than the preset second distance, delaying the preset second time, and returning to the step of acquiring the current second position of the vehicle when the vehicle is driven out of the preset fence; and when the vehicle is determined to leave the preset fence, recording the end time of the second time length as the time when the vehicle leaves the preset fence.
Optionally, the preset second time period ranges from 5 seconds to 15 seconds.
Specifically, when the computer device compares the second linear distance with the preset second distance, and when the second linear distance is not greater than the preset second distance, that is, the second linear distance is less than or equal to the preset second distance, the computer device may determine that the vehicle does not leave the preset fence, the computer device may delay the preset second time period, and then return to the step of performing S401. When it is determined that the vehicle leaves the preset fence in the step S403, the end time of the second time period may be recorded as the time when the vehicle leaves the preset fence.
In the triggering method for the vehicle to enter and exit the fence, when the second straight-line distance is not greater than the preset second distance, delaying the preset second time length, continuing to execute the step of the current second position of the vehicle when the vehicle exits the preset fence, and when it is determined that the vehicle leaves the preset fence, recording the end time of the second time length as the time when the vehicle leaves the preset fence. In this embodiment, since the current position of the vehicle at each moment does not need to be collected to calculate the second linear distance, and the second linear distance is sent to the computer device to be compared and judged with the preset second distance, the judgment times are few, and the calculation amount is small, the method does not need the computer device to have high performance, that is, the method can reduce the performance requirement of the computer device to a certain extent; in addition, the method can record the time when the vehicle leaves the fence, so that the phenomenon that the vehicle does not trigger the recording when leaving the fence can be avoided to a certain extent.
To facilitate understanding of those skilled in the art, the following detailed description of the triggering method for vehicle entry and exit into and out of the fence provided by the present invention is provided by taking an application scenario as a cargo transportation scenario and a destination location as a cargo unloading location, as shown in fig. 6, the method may include:
s601, acquiring a current first position and a current unloading position of the vehicle when the vehicle drives to a preset fence.
S602, calculating a first linear distance between a current first position of the vehicle and the unloading position, and obtaining a first time length for the current first position of the vehicle to reach the unloading position according to the first linear distance.
S603, determine whether the first linear distance is greater than a preset first distance, if yes, go to S604, and if no, go to S605.
S604, delay the first duration, and then return to performing S601.
S605, determining that the vehicle enters the preset fence, recording the starting time of the first time length as the time when the vehicle enters the preset fence, and then executing S606.
And S606, acquiring a current second position of the vehicle when the vehicle is driven out of the preset fence.
And S607, calculating a second straight-line distance between the current second position of the vehicle and the unloading position.
And S608, judging whether the second straight-line distance is larger than a preset second distance, if so, entering S610, and if not, entering S609.
And S609, delaying the preset second time length, and returning to execute S606.
And S610, determining that the vehicle leaves the preset fence, and recording the end time of the second time length as the time when the vehicle leaves the preset fence.
It should be understood that although the various steps in the flow charts of fig. 2-6 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 2-6 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performance of the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternating with other steps or at least some of the sub-steps or stages of other steps.
Fig. 7 is a schematic structural diagram of a vehicle access fence triggering device according to an embodiment. As shown in fig. 7, the apparatus may include: the device comprises an acquisition module 10, a calculation module 11, a first determination module 12 and a second determination module 13.
Specifically, the acquiring module 10 is configured to acquire a current first position and a destination position of a vehicle when the vehicle drives to a preset fence;
a calculation module 11, configured to calculate a first linear distance between a current first location of the vehicle and a destination location;
the first determining module 12 is configured to obtain a first time duration for the current first position of the vehicle to reach the destination position according to the first linear distance;
a second determining module 13, configured to determine that the vehicle enters the preset fence when the first linear distance is not greater than a preset first distance, and record a start time of the first duration as a time when the vehicle enters the preset fence, where the preset first distance is a shortest distance between a destination location and the preset fence, and the destination location is at a center position of the preset fence.
The vehicle in-and-out fence triggering device provided by the embodiment can execute the method embodiments, and the implementation principle and the technical effect are similar, and are not described herein again.
In another embodiment, on the basis of the above embodiment, the second determining module 13 is further configured to delay the first time period when the first linear distance is greater than a preset first distance, and then return to the step of acquiring the current first position and the destination position of the vehicle when the vehicle is driven to a preset fence.
In another embodiment, on the basis of the above embodiment, the obtaining module 10 is further configured to obtain a current second position of the vehicle when the vehicle exits the preset fence; the calculating module 11 is further configured to calculate a second linear distance between a current second position of the vehicle and the destination position; the second determining module 13 is further configured to determine that the vehicle leaves the preset fence when the second straight-line distance is greater than a preset second distance, where the preset second distance is a longest distance between the destination location and the preset fence.
In another embodiment, on the basis of the above embodiment, the second determining module 13 is further configured to delay for a preset second time period when the second straight-line distance is not greater than the preset second distance, and return to the step of acquiring the current second position of the vehicle when the vehicle exits the preset fence; and when the vehicle is determined to leave the preset fence, recording the end time of the second time length as the time when the vehicle leaves the preset fence.
In one embodiment, the predetermined fence is a circular fence or a polygonal fence.
In one embodiment, the preset second period of time ranges from 5 seconds to 15 seconds.
In one embodiment, the obtaining a first time duration for the current first position of the vehicle to reach the destination position according to the first linear distance includes:
and obtaining a first time length of the current first position of the vehicle reaching the destination position according to a ratio of the first linear distance to a preset speed, wherein the preset speed ranges from 50 km/h to 120 km/h.
The vehicle in-and-out fence triggering device provided by the embodiment can execute the method embodiments, and the implementation principle and the technical effect are similar, and are not described herein again.
In one embodiment, there is provided a computer device comprising: a memory storing a computer program and a processor implementing the following steps when the processor executes the computer program:
the method comprises the steps of obtaining a current first position and a destination position of a vehicle when the vehicle drives to a preset fence;
calculating a first linear distance between a current first position of the vehicle and a destination position;
obtaining a first time length of the current first position of the vehicle reaching the destination position according to the first straight-line distance;
when the first straight-line distance is not greater than a preset first distance, determining that a vehicle enters the preset fence, and recording the starting time of the first time length as the time when the vehicle enters the preset fence, wherein the preset first distance is the shortest distance between a destination position and the preset fence, and the destination position is at the center position of the preset fence.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
and when the first straight-line distance is greater than a preset first distance, delaying the first time, and then returning to the step of acquiring the current first position and the destination position of the vehicle when the vehicle drives to a preset fence.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
acquiring a current second position of a vehicle when the vehicle drives out of a preset fence;
calculating a second linear distance between a current second position of the vehicle and the destination position;
and when the second straight-line distance is greater than a preset second distance, determining that the vehicle leaves the preset fence, wherein the preset second distance is the longest distance between the destination position and the preset fence.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
when the second straight-line distance is not greater than the preset second distance, delaying the preset second time, and returning to the step of acquiring the current second position of the vehicle when the vehicle is driven out of the preset fence; and when the vehicle is determined to leave the preset fence, recording the end time of the second time length as the time when the vehicle leaves the preset fence.
In one embodiment, the predetermined fence is a circular fence or a polygonal fence.
In one embodiment, the preset second period of time ranges from 5 seconds to 15 seconds.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
and obtaining a first time length of the current first position of the vehicle reaching the destination position according to a ratio of the first linear distance to a preset speed, wherein the preset speed ranges from 50 km/h to 120 km/h.
In one embodiment, a readable storage medium is provided, having stored thereon a computer program which, when executed by a processor, performs the steps of:
the method comprises the steps of obtaining a current first position and a destination position of a vehicle when the vehicle drives to a preset fence;
calculating a first linear distance between a current first position of the vehicle and a destination position;
obtaining a first time length of the current first position of the vehicle reaching the destination position according to the first straight-line distance;
when the first straight-line distance is not greater than a preset first distance, determining that a vehicle enters the preset fence, and recording the starting time of the first time length as the time when the vehicle enters the preset fence, wherein the preset first distance is the shortest distance between a destination position and the preset fence, and the destination position is at the center position of the preset fence.
In one embodiment, the computer program when executed by the processor further performs the steps of:
and when the first straight-line distance is greater than a preset first distance, delaying the first time, and then returning to the step of acquiring the current first position and the destination position of the vehicle when the vehicle drives to a preset fence.
In one embodiment, the computer program when executed by the processor further performs the steps of:
acquiring a current second position of a vehicle when the vehicle drives out of a preset fence;
calculating a second linear distance between a current second position of the vehicle and the destination position;
and when the second straight-line distance is greater than a preset second distance, determining that the vehicle leaves the preset fence, wherein the preset second distance is the longest distance between the destination position and the preset fence.
In one embodiment, the computer program when executed by the processor further performs the steps of:
when the second straight-line distance is not greater than the preset second distance, delaying the preset second time, and returning to the step of acquiring the current second position of the vehicle when the vehicle is driven out of the preset fence; and when the vehicle is determined to leave the preset fence, recording the end time of the second time length as the time when the vehicle leaves the preset fence.
In one embodiment, the predetermined fence is a circular fence or a polygonal fence.
In one embodiment, the preset second period of time ranges from 5 seconds to 15 seconds.
In one embodiment, the computer program when executed by the processor further performs the steps of:
and obtaining a first time length of the current first position of the vehicle reaching the destination position according to a ratio of the first linear distance to a preset speed, wherein the preset speed ranges from 50 km/h to 120 km/h.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the embodiments described above may be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the embodiments described above are not described, but should be considered as being within the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the claims. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A vehicle ingress and egress fence trigger recording method, the method comprising:
the method comprises the steps of obtaining a current first position and a destination position of a vehicle when the vehicle drives to a preset fence;
calculating a first linear distance between a current first position of the vehicle and a destination position;
obtaining a first time length of the current first position of the vehicle to the destination position according to the first linear distance, wherein the first time length has a starting time which is the current time of the first time length calculated by the computer equipment;
when the first straight-line distance is not greater than a preset first distance, determining that a vehicle enters the preset fence, and recording the starting time of the first time length as the time when the vehicle enters the preset fence, wherein the preset first distance is the shortest distance between a destination position and the preset fence, and the destination position is at the center position of the preset fence.
2. The method of claim 1, further comprising:
and when the first straight-line distance is greater than a preset first distance, delaying the first time, and then returning to the step of acquiring the current first position and the destination position of the vehicle when the vehicle drives to a preset fence.
3. The method of claim 1, wherein after determining that the vehicle enters the pre-set fence, the method further comprises:
acquiring a current second position of a vehicle when the vehicle drives out of a preset fence;
calculating a second linear distance between a current second position of the vehicle and the destination position;
and when the second straight-line distance is greater than a preset second distance, determining that the vehicle leaves the preset fence, wherein the preset second distance is the longest distance between the destination position and the preset fence.
4. The method of claim 3, further comprising:
when the second straight-line distance is not greater than the preset second distance, delaying the preset second time, and returning to the step of acquiring the current second position of the vehicle when the vehicle is driven out of the preset fence; and when the vehicle is determined to leave the preset fence, recording the end time of the second time length as the time when the vehicle leaves the preset fence.
5. The method of any one of claims 1-4, wherein the pre-defined fence is a circular fence or a polygonal fence.
6. The method of claim 4, wherein the preset second period of time ranges from 5 seconds to 15 seconds.
7. The method of claim 1, wherein said deriving a first length of time for said vehicle to reach said destination location from said first linear distance comprises:
and obtaining a first time length of the current first position of the vehicle reaching the destination position according to a ratio of the first linear distance to a preset speed, wherein the preset speed ranges from 50 km/h to 120 km/h.
8. A vehicle access fence trigger recording apparatus, the apparatus comprising:
the system comprises an acquisition module, a processing module and a control module, wherein the acquisition module is used for acquiring a current first position and a destination position of a vehicle when the vehicle drives to a preset fence;
a calculation module for calculating a first linear distance between a current first position of the vehicle and a destination position;
the first determining module is used for obtaining a first time length of the current first position of the vehicle reaching the destination position according to the first linear distance;
the second determining module is configured to determine that the vehicle enters the preset fence when the first linear distance is not greater than a preset first distance, and record a start time of the first duration as a time when the vehicle enters the preset fence, where the preset first distance is a shortest distance between a destination position and the preset fence, and the destination position is at a center position of the preset fence.
9. A computer device, comprising: memory storing a computer program, and a processor, wherein the processor implements the steps of the method according to any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 7.
CN201910047261.1A 2019-01-18 2019-01-18 Method, device and equipment for triggering recording when vehicles enter and exit from fence and storage medium Active CN109889990B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910047261.1A CN109889990B (en) 2019-01-18 2019-01-18 Method, device and equipment for triggering recording when vehicles enter and exit from fence and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910047261.1A CN109889990B (en) 2019-01-18 2019-01-18 Method, device and equipment for triggering recording when vehicles enter and exit from fence and storage medium

Publications (2)

Publication Number Publication Date
CN109889990A CN109889990A (en) 2019-06-14
CN109889990B true CN109889990B (en) 2021-01-12

Family

ID=66926213

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910047261.1A Active CN109889990B (en) 2019-01-18 2019-01-18 Method, device and equipment for triggering recording when vehicles enter and exit from fence and storage medium

Country Status (1)

Country Link
CN (1) CN109889990B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106507299A (en) * 2016-10-31 2017-03-15 乐视控股(北京)有限公司 A kind of networking control method of terminal, device and electronic equipment
CN108683876A (en) * 2018-04-02 2018-10-19 杭州觅睿科技有限公司 A kind of monitoring system based on geography fence technology

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104678420A (en) * 2013-11-26 2015-06-03 中兴通讯股份有限公司 Location method, device and terminal
EP3288299A4 (en) * 2015-05-21 2018-04-18 Huawei Technologies Co., Ltd. Operation triggering method and portable electronic device
CN105741539B (en) * 2016-04-01 2018-03-02 中国电子科技集团公司第二十八研究所 According to the method and system of guide car position automatic decision guard duty time of day
CN106652532B (en) * 2016-11-18 2020-11-10 宇龙计算机通信科技(深圳)有限公司 Terminal and interconnected trip reminding method
CN109151725A (en) * 2018-07-25 2019-01-04 国网上海市电力公司 Electric power emphasis equipment conveying based on geography fence technology joins management method
CN109151204B (en) * 2018-08-31 2021-04-23 Oppo(重庆)智能科技有限公司 Navigation method and device based on mobile terminal and mobile terminal

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106507299A (en) * 2016-10-31 2017-03-15 乐视控股(北京)有限公司 A kind of networking control method of terminal, device and electronic equipment
CN108683876A (en) * 2018-04-02 2018-10-19 杭州觅睿科技有限公司 A kind of monitoring system based on geography fence technology

Also Published As

Publication number Publication date
CN109889990A (en) 2019-06-14

Similar Documents

Publication Publication Date Title
CN108280995B (en) Road condition data processing method and device of Internet of vehicles and computer equipment
CN110838239B (en) Parking space navigation method, device, computer readable storage medium and computer equipment
US20140156183A1 (en) Methods and system for locating available parking spots
US9151835B2 (en) Moving object tracking apparatus, and moving object tracking method
US20220035780A1 (en) Methods and systems for fixed extrapolation error data simplification processes for telematics
CN110455302B (en) Navigation system control method, device, computer equipment and storage medium
US11593329B2 (en) Methods and devices for fixed extrapolation error data simplification processes for telematics
CN110197119A (en) Travelling data analysis method, device, computer equipment and storage medium
CN112163348A (en) Method and device for detecting road abnormal road surface, simulation method, vehicle and medium
CN115696185A (en) Positioning information acquisition method, driving assistance method and vehicle end sensor detection method
CN111311784A (en) User portrait determination method, device, computer equipment and storage medium
CN111612378A (en) Potential collision risk prediction method and device and computer equipment
CN111539551A (en) Driving destination address prediction method and device, computer equipment and storage medium
CN109889990B (en) Method, device and equipment for triggering recording when vehicles enter and exit from fence and storage medium
CN109767613B (en) Method, device and equipment for early warning of vehicle deviation from preset route and storage medium
CN111091215A (en) Vehicle identification method and device, computer equipment and storage medium
US20220268591A1 (en) Method, Computer Program, and Device for Processing Data Recorded by a Motor Vehicle
CN110930688B (en) Planning method and device for vehicle driving path, computer equipment and storage medium
CN116978254A (en) Method and electronic device for assisting vehicle in searching available parking spaces in service area
CN111429047A (en) Transportation task monitoring method and device
CN112202890B (en) Early warning method and device for vehicle driving risk and computer equipment
CN115203823A (en) Driving simulation test method and device, computer equipment and storage medium
US11740079B2 (en) Method, computer program and device for determining a vehicle spacing for an observation period
CN111319627B (en) Driving assistance method, apparatus, computer device, and storage medium
CN113674350A (en) Parking space state detection method and device, computer equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20220628

Address after: 402460 Guang'an Road, Guangshun street, Rongchang District, Chongqing (in Guangfu Park, Rongchang national high tech Zone) (independent commitment)

Patentee after: Chongqing Rongchang ChuanHua smart Park Management Service Co.,Ltd.

Address before: 311215 Ningxin village, ningwei street, Xiaoshan District, Hangzhou City, Zhejiang Province

Patentee before: ZHEJIANG SHULIAN TECHNOLOGY Co.,Ltd.

TR01 Transfer of patent right