CN115240401A - Vehicle position determination method, apparatus, device, medium, and product - Google Patents
Vehicle position determination method, apparatus, device, medium, and product Download PDFInfo
- Publication number
- CN115240401A CN115240401A CN202210776995.5A CN202210776995A CN115240401A CN 115240401 A CN115240401 A CN 115240401A CN 202210776995 A CN202210776995 A CN 202210776995A CN 115240401 A CN115240401 A CN 115240401A
- Authority
- CN
- China
- Prior art keywords
- position information
- target
- target area
- determining
- vehicle
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 47
- 238000004590 computer program Methods 0.000 claims abstract description 37
- 239000013598 vector Substances 0.000 claims description 18
- 238000012545 processing Methods 0.000 claims description 10
- 238000005516 engineering process Methods 0.000 abstract description 4
- 238000007418 data mining Methods 0.000 abstract description 2
- 238000010586 diagram Methods 0.000 description 5
- 230000008569 process Effects 0.000 description 4
- 230000000007 visual effect Effects 0.000 description 4
- 238000004891 communication Methods 0.000 description 3
- 230000006855 networking Effects 0.000 description 3
- 239000000284 extract Substances 0.000 description 2
- OKTJSMMVPCPJKN-UHFFFAOYSA-N Carbon Chemical compound [C] OKTJSMMVPCPJKN-UHFFFAOYSA-N 0.000 description 1
- 238000004458 analytical method Methods 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 230000001413 cellular effect Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 229910021389 graphene Inorganic materials 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G08—SIGNALLING
- G08G—TRAFFIC CONTROL SYSTEMS
- G08G1/00—Traffic control systems for road vehicles
- G08G1/123—Traffic control systems for road vehicles indicating the position of vehicles, e.g. scheduled vehicles; Managing passenger vehicles circulating according to a fixed timetable, e.g. buses, trains, trams
-
- G—PHYSICS
- G08—SIGNALLING
- G08G—TRAFFIC CONTROL SYSTEMS
- G08G1/00—Traffic control systems for road vehicles
- G08G1/20—Monitoring the location of vehicles belonging to a group, e.g. fleet of vehicles, countable or determined number of vehicles
- G08G1/207—Monitoring the location of vehicles belonging to a group, e.g. fleet of vehicles, countable or determined number of vehicles with respect to certain areas, e.g. forbidden or allowed areas with possible alerting when inside or outside boundaries
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/02—Services making use of location information
- H04W4/021—Services related to particular areas, e.g. point of interest [POI] services, venue services or geofences
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/02—Services making use of location information
- H04W4/025—Services making use of location information using location based information parameters
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/02—Services making use of location information
- H04W4/029—Location-based management or tracking services
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Radar, Positioning & Navigation (AREA)
- Remote Sensing (AREA)
- Traffic Control Systems (AREA)
Abstract
The present application relates to the field of data mining technologies, and in particular, to a method, an apparatus, a computer device, a storage medium, and a computer program product for determining a vehicle position. The method comprises the following steps: first position information of each target point on the boundary of the target area and second position information of the target vehicle are obtained, and then the position relation between the target vehicle and the target area is determined according to the first position information and the second position information of each point on the boundary of the target area. According to the embodiment, the position relation between the target vehicle and the target area can be determined only through the position information of the target point on the boundary of the target area and the position information of the target vehicle, so that the cost can be saved, and the efficiency is improved.
Description
Technical Field
The present application relates to the field of data mining technologies, and in particular, to a method, an apparatus, a computer device, a storage medium, and a computer program product for determining a vehicle position.
Background
In the stages of testing, running and the like, a port vehicle and an unmanned intelligent vehicle need to run in a fixed area, but because the intelligent driving technology is not mature enough, the situation that the vehicle runs beyond the area continuously is likely to occur, in order to avoid the situation, the specific position of the vehicle needs to be determined in real time, whether the vehicle exceeds the area is judged by detecting the position relation between the vehicle and the area, and the common technical means for detecting the position relation between the vehicle and the area is to set an electronic fence for the vehicle.
Most of the existing electronic fences use sensors to detect the position relation between a vehicle and an area, use actual facilities to limit the driving of the vehicle, and send out alarm information when the vehicle exceeds the area, but the electronic fence has high cost.
Disclosure of Invention
Based on this, it is necessary to provide a method, an apparatus, a computer device, a computer-readable storage medium, and a computer program product for determining a virtual electronic fence based vehicle location, which can save cost and improve efficiency.
A vehicle position determination method, the method comprising:
acquiring first position information of each target point on the boundary of the target area;
acquiring second position information of the target vehicle;
and determining the position relation between the target vehicle and the target area according to the first position information and the second position information of each point on the boundary of the target area.
In one embodiment, the acquiring first position information of each target point on the boundary of the target area includes:
receiving an initial point selection instruction, and determining third position information of an initial point on the boundary of a target area according to the initial point selection instruction;
determining a maximum coordinate range based on third position information of each of the initial points;
and performing interpolation processing according to the maximum coordinate range to determine the target point, and calculating first position information of the target point.
In one embodiment, the determining the position relationship between the target vehicle and the target area according to the first position information and the second position information of each point on the boundary of the target area includes:
and when the first position information comprises position information corresponding to the second position information of the target vehicle, the target vehicle is on the boundary of the target area.
In one embodiment, the determining the position relationship between the target vehicle and the target area according to the first position information and the second position information of each point on the boundary of the target area further includes:
when the first position information does not comprise position information corresponding to the second position information of the target vehicle, generating a unit vector according to the first position information and the time when the first position information comprises the position information corresponding to the second position information of the target vehicle;
determining the range corresponding to the unit vector;
and determining the position relation between the target vehicle and the target area according to the range.
In one embodiment, the determining the position relationship between the target vehicle and the target area according to the range includes:
determining a threshold value according to the first position information;
when the range is greater than the threshold, the target vehicle is outside the target zone;
when the range is less than the threshold, the target vehicle is within the target zone.
In one embodiment, after determining the position relationship between the target vehicle and the target area according to the first position information and the second position information of each point on the boundary of the target area, the method further includes:
and generating an early warning signal or a reminding signal according to the position relation between the target vehicle and the target area.
An electronic fence device based on internet of vehicles data, the device comprising:
the first acquisition module is used for acquiring first position information of each target point on the boundary of the target area;
the second acquisition module is used for acquiring second position information of the target vehicle;
and the determining module is used for determining the position relation between the target vehicle and the target area according to the first position information and the second position information of each point on the boundary of the target area.
A computer device comprising a memory storing a computer program and a processor implementing the steps of the method described above when executing the computer program.
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 above-mentioned method.
A computer program product comprising a computer program which, when executed by a processor, carries out the steps of the method described above.
The vehicle position determining method, the vehicle position determining device, the computer equipment, the storage medium and the computer program product firstly acquire the first position information of each target point on the boundary of the target area and the second position information of the target vehicle, and then determine the position relation between the target vehicle and the target area according to the first position information and the second position information of each point on the boundary of the target area. According to the embodiment, the position relation between the target vehicle and the target area can be determined only through the position information of the target point on the boundary of the target area and the position information of the target vehicle, so that the cost can be saved, and the efficiency is improved.
Drawings
FIG. 1 is a schematic flow diagram of a vehicle position determination method in one embodiment;
FIG. 2 is a flowchart illustrating the step of determining the positional relationship between a target area and a target vehicle in one embodiment;
FIG. 3 is a block diagram showing the construction of a vehicle position determining apparatus in one embodiment;
FIG. 4 is a diagram illustrating an internal structure of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more clearly understood, the present application is further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of and not restrictive on the broad application.
In one embodiment, as shown in fig. 1, a vehicle position determining method is provided, and this embodiment is illustrated by applying the method to a terminal, and it is understood that the method may also be applied to a server, and may also be applied to a system including the terminal and the server, and is implemented by interaction between the terminal and the server.
In this embodiment, the method includes the steps of:
s101, acquiring first position information of each target point on the boundary of the target area.
The target point is a longitude and latitude coordinate point on the boundary of the target area, and the first position information refers to the longitude and latitude coordinates of each target point on the boundary of the target area.
And S102, acquiring second position information of the target vehicle.
The second location information refers to latitude and longitude coordinates of the target vehicle.
The terminal obtains the longitude and latitude sequence of the target vehicle from the vehicle networking data, removes the weight of the longitude and latitude coordinates, and carries out precision processing on the longitude and latitude data in all the remaining longitude and latitude coordinates to meet the precision requirement, such as two decimal places are reserved. The longitude and latitude sequence is a row formed by arranging all longitude and latitude coordinates on a driving route of a vehicle according to the arrival time sequence of a target vehicle, and the duplication removal of the longitude and latitude coordinates refers to that only one coordinate is reserved for the longitude and latitude coordinates with completely the same longitude and latitude data, and all the remaining same coordinates are deleted.
S103, determining the position relation between the target vehicle and the target area according to the first position information and the second position information of each point on the boundary of the target area.
For example, when the same position information as the second position information exists in the first position information, the target vehicle is considered to be located on the boundary of the target area.
The terminal needs to determine the position relationship between the target vehicle and the target area when the target vehicle is located at all coordinate points corresponding to the latitude and longitude coordinates of the target vehicle according to the order of the latitude coordinates in the latitude and longitude sequence of the target vehicle.
The vehicle position determining method provided by the embodiment first obtains first position information of each target point and second position information of the target vehicle on the boundary of the target area, and then determines the position relationship between the target vehicle and the target area according to the first position information and the second position information of each point on the boundary of the target area. According to the embodiment, the position relation between the target vehicle and the target area can be determined only through the position information of the target point on the boundary of the target area and the position information of the target vehicle, so that the cost can be saved, and the efficiency is improved.
In some embodiments, obtaining first position information of each target point on the target area boundary includes: receiving an initial point selection instruction, and determining third position information of an initial point on the boundary of a target area according to the initial point selection instruction; determining a maximum coordinate range based on third position information of each of the initial points; and performing interpolation processing according to the maximum coordinate range to determine the target point, and calculating first position information of the target point.
In the step, firstly, a terminal receives an operation instruction of clicking coordinate points on a visual map by a user, then the terminal acquires longitude and latitude data of the coordinate points clicked by the user, the longitude and latitude coordinates clicked by the user form a set according to the order of clicking by the user, then the terminal sequentially extracts two adjacent longitude and latitude coordinates in the set according to the set order, calculates the longitude and latitude data of a target point according to the extracted longitude and latitude coordinates so as to obtain the longitude and latitude coordinates of the target point, and finally the terminal forms the set of the longitude and latitude coordinates of the target point according to the calculated order. The longitude and latitude coordinates selected by the user are selected by the user on the visual map according to the needs of the user, for example, if the user needs to construct an electronic fence of a port vehicle driving route, the user selects the longitude and latitude coordinates around the port vehicle driving route on the visual map; the coordinate point clicked by the user is the initial point on the boundary of the target area, and the longitude and latitude coordinate clicked by the user is the third position information of the initial point on the boundary of the target area.
The process of the terminal calculating the first position information of the target point is as follows: first, all initial points are sequentially marked as A (x) according to the collection order 1 ,y 1 )、B(x 2 ,y 2 )、C(x 3 ,y 3 ) 8230A, calculating a linear equation of the two points A and B according to the coordinates of the two points A and B, recording the linear equation as y = kx + B, and calculating delta x = | x 2 -x 1 |,Δy=|y 2 -y 1 Comparing the magnitude of Δ x with Δ y if Δ x>Δ y, then x 1 +0.01,x 1 +0.02,x 1 +0.03...x 1 Substituting y = kx + b by +0.01 (n-1) calculates the corresponding value of y if Δ x<Δ y, then y 1 +0.01,y 1 +0.02,y 1 +0.03...y 1 And (3) substituting y = kx + B into +0.01 (n-1) to calculate the corresponding value of x, thereby obtaining a series of target points and longitude and latitude coordinates of the target points according to the two points A and B, finally extracting the longitude and latitude coordinates of all the adjacent initial points according to the collection sequence, and determining the longitude and latitude coordinates of all the target points and the target points according to the calculation step and the extracted adjacent initial points, wherein the initial points also belong to the target points.
According to the method provided by the step, the user can select the initial point according to the actual situation, so that the longitude and latitude coordinates of the target point are calculated, and the method is flexible and can be suitable for various different actual situations.
In some embodiments, determining the positional relationship of the target vehicle and the target area based on the first positional information and the second positional information of the points on the boundary of the target area includes: when the position information corresponding to the second position information of the target vehicle exists in the first position information, the target vehicle is on the boundary of the target area.
In this step, if the longitude and latitude coordinates of a target point are the same as the certain longitude and latitude coordinates of the target vehicle, the target vehicle is on the boundary of the target area at the time point corresponding to the longitude and latitude coordinates of the target vehicle.
The method provided by the step can judge whether the target vehicle is on the boundary of the target area only by comparing the target point with the longitude and latitude coordinates of the target vehicle, has simple process and can save cost.
Referring to fig. 2, fig. 2 is a schematic flowchart of a step of determining a position relationship between a target area and a target vehicle according to an embodiment of the present application. The present embodiment relates to an alternative implementation of how to determine the positional relationship between the target area and the target vehicle. Determining the position relationship between the target vehicle and the target area according to the first position information and the second position information of each point on the boundary of the target area, and further comprising:
and S201, when the first position information does not have the position information corresponding to the second position information of the target vehicle, generating a unit vector according to the first position information and the time when the first position information does not have the position information corresponding to the second position information of the target vehicle.
In this step, any longitude and latitude coordinate P (x) in the longitude and latitude sequence of the target vehicle is taken 0 ,y 0 ) If the longitude and latitude coordinates of any target point are not the same as the coordinates of the point P, the terminal calculates the unit vector of the longitude and latitude coordinates from the point P to all the target points, for example, from the point P to A (x) 1 ,y 1 ) The unit vector of (a) is:
s202, determining the range corresponding to the unit vector.
The terminal converts unit vectors of longitude and latitude coordinates from the point P to all target points into polar coordinate representation, then forms angle data of all the polar coordinates into an angle data sequence S, calculates range of all the angle data in the angle data sequence S, and records the range as: m = s.max-s.min.
And S203, determining the position relation between the target vehicle and the target area according to the range.
In this step, the positional relationship between the target vehicle and the target area includes that the target vehicle is within the target area and that the target vehicle is outside the target area.
The method provided by the step considers all the position relations between the target vehicle and the target area, and can more accurately determine the position of the target vehicle.
In some embodiments, determining the positional relationship of the target vehicle and the target area from the range includes: determining a threshold value according to the first position information; when the range is larger than the threshold value, the target vehicle is outside the target area; and when the range is smaller than the threshold value, the target vehicle is in the target area.
Wherein the threshold is determined according to the density of the first location information. When the range m is larger than the threshold value, the point P is positioned outside the target area; when the range m is smaller than the threshold, the point P is located in the target area.
The terminal needs to calculate the range from all the longitude and latitude coordinates in the longitude and latitude sequence of the target vehicle to the longitude and latitude coordinates of all the target points, so as to determine the position relation between the target vehicle and the target area when the target vehicle is located at all the longitude and latitude coordinates in the longitude and latitude sequence of the target vehicle.
According to the method provided by the step, the threshold is determined according to the density degree of the target points on the boundary of the target area, so that the position of the target vehicle is determined according to the size relation between the threshold and the range, different thresholds can be selected according to actual conditions, and the position of the target vehicle can be judged more accurately.
In some embodiments, after determining the positional relationship between the target vehicle and the target area based on the first and second position information for the points on the boundary of the target area, the method further comprises: and generating an early warning signal or a reminding signal according to the position relation between the target vehicle and the target area.
In this step, the terminal may predict an imminent situation, so as to send out a corresponding warning signal or a corresponding reminding signal, for example, the terminal may determine, in real time, a time when the target vehicle enters the target area according to the speed of the target vehicle and the road information based on the position relationship between the target vehicle and the target area, so as to send out corresponding reminding information.
According to the method provided by the step, the terminal can predict the impending situation, so that the staff can make corresponding preparation for the impending situation, and the occurrence of danger is avoided.
In some embodiments, the terminal acquires the vehicle networking data, extracts the longitude and latitude sequence of the target vehicle from the vehicle networking data, and simultaneously acquires the longitude and latitude coordinates of the initial point clicked by the user after receiving the initial point clicked by the user on the visual map, and determines the longitude and latitude set of the target point according to the longitude and latitude coordinates of the initial point. And then sequentially calculating the polar coordinates of unit vectors of all longitude and latitude coordinates in the longitude and latitude sequence of the target vehicle to all longitude and latitude coordinates in the longitude and latitude set of the target point, and determining the range of the angle data sequence of all polar coordinates corresponding to each longitude and latitude coordinate of the target vehicle. And then judging the position relation between the target vehicle and the target area by the terminal: when the target point is the same as the longitude and latitude coordinate point of a certain target vehicle, judging that the target vehicle is on the boundary of a target area; and when the target point is not the same as the longitude and latitude coordinate point of a certain target vehicle, comparing the relationship between the range corresponding to the longitude and latitude coordinate point of the target vehicle and the threshold, if the range is greater than the threshold, the target vehicle is positioned outside the target area, and if the range is less than the threshold, the target vehicle is positioned in the target area. And finally, judging all coordinate points in the longitude and latitude sequence of the target vehicle, and determining the position relation between the target vehicle and the target area when the target vehicle is positioned at all target points in the longitude and latitude sequence.
It should be understood that, although the steps in the flowcharts related to the embodiments as described above are sequentially displayed as indicated by arrows, the steps are not necessarily performed sequentially as indicated by the arrows. The steps are not limited to being performed in the exact order illustrated and, unless explicitly stated herein, may be performed in other orders. Moreover, at least a part of the steps in the flowcharts related to the embodiments described above may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, and the execution order of the steps or stages is not necessarily sequential, but may be rotated or alternated with other steps or at least a part of the steps or stages in other steps.
Based on the same inventive concept, the embodiment of the present application further provides a vehicle position determining apparatus for implementing the vehicle position determining method. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the method, so specific limitations in one or more embodiments of the vehicle position determining device provided below can be referred to the limitations in the vehicle position determining method in the foregoing, and details are not repeated herein.
In one embodiment, as shown in fig. 3, there is provided a vehicle position determining apparatus 300 including: a first obtaining module 301, a second obtaining module 302, and a determining module 303, wherein:
a first obtaining module 301, configured to obtain first position information of each target point on a boundary of the target area.
The second obtaining module 302 is configured to obtain second position information of the target vehicle.
The determining module 303 is configured to determine a position relationship between the target vehicle and the target area according to the first position information and the second position information of each point on the boundary of the target area.
In one embodiment, the first obtaining module 301 is further configured to: receiving an initial point selection instruction, and determining third position information of an initial point on the boundary of the target area according to the initial point selection instruction; determining a maximum coordinate range based on the third position information of each initial point; and performing interpolation processing according to the maximum coordinate range to determine the target point, and calculating first position information of the target point.
In one embodiment, the determining module 303 is further configured to: when the position information corresponding to the second position information of the target vehicle exists in the first position information, the target vehicle is on the boundary of the target area.
In one embodiment, the determining module 303 includes:
a generating unit configured to generate a unit vector based on when the position information corresponding to the second position information of the target vehicle exists in the first position information and the first position information when the position information corresponding to the second position information of the target vehicle does not exist in the first position information.
And the first determining unit is used for determining the range corresponding to the unit vector.
And the second determining unit is used for determining the position relation between the target vehicle and the target area according to the range.
In one embodiment, the second determination unit is further configured to: determining a threshold value according to the first position information; when the range is larger than the threshold value, the target vehicle is outside the target area; and when the range is smaller than the threshold value, the target vehicle is in the target area.
In one embodiment, after determining the position relationship between the target vehicle and the target area according to the first position information and the second position information of each point on the boundary of the target area, the apparatus 300 is specifically configured to: and generating an early warning signal or a reminding signal according to the position relation between the target vehicle and the target area.
The respective modules in the above-described vehicle position determining apparatus may be implemented in whole or in part by software, hardware, and a combination thereof. The modules can be embedded in a hardware form or independent of a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as shown in fig. 4. The computer device comprises a processor, a memory, a communication 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 operating system and the computer program to run on the non-volatile storage medium. The communication interface of the computer device is used for communicating with an external terminal in a wired or wireless manner, and the wireless manner can be realized through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. The computer program is executed by a processor to implement a vehicle position determination method. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the architecture shown in fig. 4 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided, comprising a memory and a processor, the memory having a computer program stored therein, the processor implementing the following steps when executing the computer program: acquiring first position information of each target point on the boundary of the target area; acquiring second position information of the target vehicle; and determining the position relation between the target vehicle and the target area according to the first position information and the second position information of each point on the boundary of the target area.
In one embodiment, the obtaining first position information of target points on a boundary of a target area, which is implemented when the processor executes the computer program, includes: receiving an initial point selection instruction, and determining third position information of an initial point on the boundary of the target area according to the initial point selection instruction; determining a maximum coordinate range based on the third position information of each initial point; and performing interpolation processing according to the maximum coordinate range to determine the target point, and calculating first position information of the target point.
In one embodiment, the determining the positional relationship of the target vehicle and the target area based on the first and second positional information of the points on the boundary of the target area, as implemented by the processor executing the computer program, comprises: when the position information corresponding to the second position information of the target vehicle exists in the first position information, the target vehicle is on the boundary of the target area.
In one embodiment, the processor, implemented when executing the computer program, determines the positional relationship between the target vehicle and the target area based on the first positional information and the second positional information of the points on the boundary of the target area, further comprises: when the first position information does not include position information corresponding to the second position information of the target vehicle, generating a unit vector according to the first position information and the position information when the first position information includes position information corresponding to the second position information of the target vehicle; determining the range corresponding to the unit vector; and determining the position relation between the target vehicle and the target area according to the range.
In one embodiment, determining the positional relationship of the target vehicle and the target area from the range, as implemented by the processor executing the computer program, comprises: determining a threshold value according to the first position information; when the range is larger than the threshold value, the target vehicle is outside the target area; and when the range is smaller than the threshold value, the target vehicle is in the target area.
In one embodiment, the processor, when executing the computer program, after determining the position relationship between the target vehicle and the target area according to the first position information and the second position information of the points on the boundary of the target area, further comprises: and generating an early warning signal or a reminding signal according to the position relation between the target vehicle and the target area.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of: acquiring first position information of each target point on the boundary of the target area; acquiring second position information of the target vehicle; and determining the position relation between the target vehicle and the target area according to the first position information and the second position information of each point on the boundary of the target area.
In one embodiment, the obtaining first position information of target points on a boundary of a target area, implemented when the computer program is executed by the processor, includes: receiving an initial point selection instruction, and determining third position information of an initial point on the boundary of the target area according to the initial point selection instruction; determining a maximum coordinate range based on the third position information of each initial point; and performing interpolation processing according to the maximum coordinate range to determine the target point, and calculating first position information of the target point.
In one embodiment, the determining the positional relationship of the target vehicle and the target area based on the first and second position information of the points on the boundary of the target area, as performed by the processor, comprises: when the position information corresponding to the second position information of the target vehicle exists in the first position information, the target vehicle is on the boundary of the target area.
In one embodiment, the computer program, when executed by the processor, for determining a positional relationship between the target vehicle and the target area based on the first positional information and the second positional information of the points on the boundary of the target area, further comprises: when the first position information does not contain position information corresponding to the second position information of the target vehicle, generating a unit vector according to the first position information and the time when the first position information contains position information corresponding to the second position information of the target vehicle; determining the range corresponding to the unit vector; and determining the position relation between the target vehicle and the target area according to the range.
In one embodiment, the computer program when executed by a processor for determining a positional relationship of a target vehicle and a target area based on range includes: determining a threshold value according to the first position information; when the range is larger than the threshold value, the target vehicle is outside the target area; and when the range is smaller than the threshold value, the target vehicle is in the target area.
In one embodiment, the computer program when executed by the processor, after determining the positional relationship between the target vehicle and the target area based on the first positional information and the second positional information of the points on the boundary of the target area, further comprises: and generating an early warning signal or a reminding signal according to the position relation between the target vehicle and the target area.
In one embodiment, a computer program product is provided, comprising a computer program which, when executed by a processor, performs the steps of: acquiring first position information of each target point on the boundary of the target area; acquiring second position information of the target vehicle; and determining the position relation between the target vehicle and the target area according to the first position information and the second position information of each point on the boundary of the target area.
In one embodiment, the obtaining first position information of target points on a boundary of a target area, implemented when the computer program is executed by the processor, includes: receiving an initial point selection instruction, and determining third position information of an initial point on the boundary of the target area according to the initial point selection instruction; determining a maximum coordinate range based on the third position information of each initial point; and performing interpolation processing according to the maximum coordinate range to determine the target point, and calculating first position information of the target point.
In one embodiment, the determining the positional relationship of the target vehicle and the target area based on the first and second position information of the points on the boundary of the target area, as performed by the processor, comprises: when the position information corresponding to the second position information of the target vehicle exists in the first position information, the target vehicle is on the boundary of the target area.
In one embodiment, the computer program, when executed by the processor, for determining a positional relationship between the target vehicle and the target area based on the first positional information and the second positional information of the points on the boundary of the target area, further comprises: when the first position information does not contain position information corresponding to the second position information of the target vehicle, generating a unit vector according to the first position information and the time when the first position information contains position information corresponding to the second position information of the target vehicle; determining the range corresponding to the unit vector; and determining the position relation between the target vehicle and the target area according to the range.
In one embodiment, the computer program when executed by a processor for determining a positional relationship of a target vehicle and a target area based on range includes: determining a threshold value according to the first position information; when the range is larger than the threshold value, the target vehicle is outside the target area; and when the range is smaller than the threshold value, the target vehicle is in the target area.
In one embodiment, the computer program when executed by the processor, after determining the positional relationship between the target vehicle and the target area based on the first positional information and the second positional information of the points on the boundary of the target area, further comprises: and generating an early warning signal or a reminding signal according to the position relation between the target vehicle and the target area.
It should be noted that, the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data for analysis, stored data, presented data, etc.) referred to in the present application are information and data authorized by the user or sufficiently authorized by each party.
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, databases, or other media used in the embodiments provided herein can include at least one of non-volatile and volatile memory. The nonvolatile Memory may include a Read-Only Memory (ROM), a magnetic tape, a floppy disk, a flash Memory, an optical Memory, a high-density embedded nonvolatile Memory, a resistive Random Access Memory (ReRAM), a Magnetic Random Access Memory (MRAM), a Ferroelectric Random Access Memory (FRAM), a Phase Change Memory (PCM), a graphene Memory, and the like. Volatile Memory can include Random Access Memory (RAM), external cache Memory, and the like. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM), for example. The databases referred to in various embodiments provided herein may include at least one of relational and non-relational databases. The non-relational database may include, but is not limited to, a block chain based distributed database, and the like. The processors referred to in the various embodiments provided herein may be, without limitation, general purpose processors, central processing units, graphics processors, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, or the like.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present application. 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, and these are all within the scope of protection of the present application. Therefore, the protection scope of the present application should be subject to the appended claims.
Claims (10)
1. A vehicle position determination method, characterized in that the method comprises:
acquiring first position information of each target point on the boundary of the target area;
acquiring second position information of the target vehicle;
and determining the position relation between the target vehicle and the target area according to the first position information and the second position information of each point on the boundary of the target area.
2. The method of claim 1, wherein the obtaining first position information of each target point on the boundary of the target area comprises:
receiving an initial point selection instruction, and determining third position information of an initial point on the boundary of the target area according to the initial point selection instruction;
determining a maximum coordinate range based on third position information of each of the initial points;
and performing interpolation processing according to the maximum coordinate range to determine the target point, and calculating first position information of the target point.
3. The method of claim 1, wherein determining the positional relationship between the target vehicle and the target area according to the first positional information and the second positional information of the points on the boundary of the target area comprises:
and when the first position information comprises position information corresponding to the second position information of the target vehicle, the target vehicle is on the boundary of the target area.
4. The method according to claim 1, wherein the determining the positional relationship between the target vehicle and the target area based on the first positional information and the second positional information of the points on the boundary of the target area further comprises:
when the first position information does not contain position information corresponding to the second position information of the target vehicle, generating a unit vector according to the first position information and the first position information when the first position information does not contain position information corresponding to the second position information of the target vehicle;
determining the range corresponding to the unit vector;
and determining the position relation between the target vehicle and the target area according to the range.
5. The method according to any one of claims 1-4, wherein said determining a positional relationship of the target vehicle and the target area from the range comprises:
determining a threshold value according to the first position information;
when the range is larger than the threshold value, the target vehicle is outside the target area;
when the range is less than the threshold, the target vehicle is within the target zone.
6. The method according to claim 1, wherein after determining the positional relationship between the target vehicle and the target area based on the first positional information and the second positional information of the respective points on the boundary of the target area, the method further comprises:
and generating an early warning signal or a reminding signal according to the position relation between the target vehicle and the target area.
7. A vehicle position determining apparatus, characterized in that the apparatus comprises:
the first acquisition module is used for acquiring first position information of each target point on the boundary of the target area;
the second acquisition module is used for acquiring second position information of the target vehicle;
and the determining module is used for determining the position relation between the target vehicle and the target area according to the first position information and the second position information of each point on the boundary of the target area.
8. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor, when executing the computer program, implements the steps of the method of any of claims 1 to 6.
9. 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 6.
10. A computer program product comprising a computer program, characterized in that the computer program, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210776995.5A CN115240401B (en) | 2022-07-04 | 2022-07-04 | Vehicle position determining method, device, equipment, medium and product |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210776995.5A CN115240401B (en) | 2022-07-04 | 2022-07-04 | Vehicle position determining method, device, equipment, medium and product |
Publications (2)
Publication Number | Publication Date |
---|---|
CN115240401A true CN115240401A (en) | 2022-10-25 |
CN115240401B CN115240401B (en) | 2024-04-09 |
Family
ID=83672151
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210776995.5A Active CN115240401B (en) | 2022-07-04 | 2022-07-04 | Vehicle position determining method, device, equipment, medium and product |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115240401B (en) |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20170086020A1 (en) * | 2016-05-09 | 2017-03-23 | Linhu ZHAO | Geo-fencing based location detection method and electronic device |
US20170276490A1 (en) * | 2016-03-23 | 2017-09-28 | Ford Global Technologies, Llc | Gps-based area recognition in vehicles |
CN110570647A (en) * | 2019-09-06 | 2019-12-13 | 北京嘀嘀无限科技发展有限公司 | prompting method and system based on electronic fence |
CN110751855A (en) * | 2018-07-24 | 2020-02-04 | 东旭科技集团有限公司 | Method and device for outputting prompt information, street lamp and readable storage medium |
CN111199639A (en) * | 2019-12-26 | 2020-05-26 | 北京摩拜科技有限公司 | Method, device and system for adjusting parking fence area and server |
US20200314589A1 (en) * | 2018-11-28 | 2020-10-01 | Beijing Didi Infinity Technology And Development Co., Ltd. | System and method for determining whether an object belongs to a target geo-fence |
CN112087708A (en) * | 2020-08-14 | 2020-12-15 | 江苏省电力试验研究院有限公司 | Layout method and layout device of electronic fence and storage medium |
CN113611131A (en) * | 2021-07-22 | 2021-11-05 | 上汽通用五菱汽车股份有限公司 | Vehicle passing method, device, equipment and computer readable storage medium |
CN113721621A (en) * | 2021-08-30 | 2021-11-30 | 阿波罗智联(北京)科技有限公司 | Vehicle control method, device, electronic device, and storage medium |
CN114495544A (en) * | 2022-01-20 | 2022-05-13 | 智道网联科技(北京)有限公司 | Signal lamp state reminding method and device based on vehicle road cloud cooperation and electronic equipment |
-
2022
- 2022-07-04 CN CN202210776995.5A patent/CN115240401B/en active Active
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20170276490A1 (en) * | 2016-03-23 | 2017-09-28 | Ford Global Technologies, Llc | Gps-based area recognition in vehicles |
US20170086020A1 (en) * | 2016-05-09 | 2017-03-23 | Linhu ZHAO | Geo-fencing based location detection method and electronic device |
CN110751855A (en) * | 2018-07-24 | 2020-02-04 | 东旭科技集团有限公司 | Method and device for outputting prompt information, street lamp and readable storage medium |
US20200314589A1 (en) * | 2018-11-28 | 2020-10-01 | Beijing Didi Infinity Technology And Development Co., Ltd. | System and method for determining whether an object belongs to a target geo-fence |
CN110570647A (en) * | 2019-09-06 | 2019-12-13 | 北京嘀嘀无限科技发展有限公司 | prompting method and system based on electronic fence |
CN111199639A (en) * | 2019-12-26 | 2020-05-26 | 北京摩拜科技有限公司 | Method, device and system for adjusting parking fence area and server |
CN112087708A (en) * | 2020-08-14 | 2020-12-15 | 江苏省电力试验研究院有限公司 | Layout method and layout device of electronic fence and storage medium |
CN113611131A (en) * | 2021-07-22 | 2021-11-05 | 上汽通用五菱汽车股份有限公司 | Vehicle passing method, device, equipment and computer readable storage medium |
CN113721621A (en) * | 2021-08-30 | 2021-11-30 | 阿波罗智联(北京)科技有限公司 | Vehicle control method, device, electronic device, and storage medium |
CN114495544A (en) * | 2022-01-20 | 2022-05-13 | 智道网联科技(北京)有限公司 | Signal lamp state reminding method and device based on vehicle road cloud cooperation and electronic equipment |
Also Published As
Publication number | Publication date |
---|---|
CN115240401B (en) | 2024-04-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP3186662B1 (en) | Measuring traffic speed in a road network | |
CN109685898B (en) | Layering method and device of point cloud data, computer equipment and storage medium | |
WO2016037346A1 (en) | Measuring and diagnosing noise in urban environment | |
CN117631682A (en) | Method and system for determining inspection route of unmanned aerial vehicle of power grid | |
CN115240401A (en) | Vehicle position determination method, apparatus, device, medium, and product | |
CN114782926B (en) | Driving scene recognition method, device, equipment, storage medium and program product | |
CN111612908A (en) | Hydraulic engineering inundation range display method, device, equipment and storage medium | |
CN116883563A (en) | Method, device, computer equipment and storage medium for rendering annotation points | |
CN114818484B (en) | Training method of driving environment model and prediction method of driving environment information | |
CN115409070A (en) | Method, device and equipment for determining critical point of discrete data sequence | |
CN115858659A (en) | Vector track display method and device, computer equipment and storage medium | |
CN114872718A (en) | Vehicle trajectory prediction method, vehicle trajectory prediction device, computer equipment and storage medium | |
CN114216467A (en) | Road positioning method, device, computer equipment and storage medium | |
CN116279935B (en) | Vehicle dumping early warning method and device and computer equipment | |
CN117874530B (en) | Challenge sample detection methods, apparatus, devices, media, and products | |
CN115810012B (en) | Transmission tower inclination detection method, device, equipment and storage medium | |
CN117609412B (en) | Spatial object association method and device based on network structure information | |
CN116522148A (en) | Vehicle driving track determining method, device, computer equipment and storage medium | |
CN114528629B (en) | Method and device for determining data base line and computer equipment | |
CN117436484A (en) | Image recognition model construction, image recognition model construction device, computer equipment and storage medium | |
CN114721547A (en) | Touch operation identification method and device, electronic equipment and storage medium | |
CN114240987A (en) | Method and device for establishing transformer substation path temporary fence barrier model | |
CN118605433A (en) | Fault prediction method, device, apparatus, storage medium, and program product | |
CN117915272A (en) | Terminal movement track display method, device, equipment and medium | |
CN118405126A (en) | Vehicle early warning method, 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 |