Detection method, prompting method and equipment
By acquiring and analyzing driving trajectories, determining whether there is any non-compliant driving on one-way roads, counting high-incidence violations and outputting prompt information, the problem of low accuracy in wrong-way detection on one-way roads is solved, thereby improving road safety.
Patent Information
- Application Number
- CN202110567363.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-05-24
- Publication Date
- 2025-10-03
- Estimated Expiration
- 2041-05-24
AI Technical Summary
In the existing technology, the detection accuracy of vehicles driving against traffic on one-way roads is low, and it is impossible to effectively prevent traffic safety hazards.
By obtaining a set of driving trajectories, determining the roads associated with the trajectories, and judging non-compliant driving trajectories based on the matching degree and road driving requirements, the roads with high incidence of violations are counted, and prompt information is output to warn drivers.
It achieves accurate detection and early warning of the high incidence of wrong-way driving on one-way roads, improves road safety, and avoids the occurrence of illegal driving.
Smart Images

Figure CN115388907B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of intelligent transportation technology, and in particular to a detection method, a prompting method, and a device. Background Art
[0002] As more and more vehicles travel on the road, failure to comply with road driving regulations can easily lead to traffic accidents. For example, if two roads connected at an intersection are very close, and one of the two roads is a one-way road, drivers may be confused and drive the wrong way. Alternatively, if drivers fail to notice road signs, they may easily drive the wrong way, which can pose a safety hazard to the road. How to effectively and accurately detect roads prone to illegal driving so that appropriate safety measures can be taken has become a key issue in addressing road safety risks. Summary of the Invention
[0003] The embodiments of the present application provide a detection method, prompt information and equipment for achieving effective and accurate road detection.
[0004] In a first aspect, the present invention provides a detection method, comprising:
[0005] Acquire a driving trajectory set, wherein the driving trajectory set includes more than one driving trajectory;
[0006] determining a road associated with the driving trajectory;
[0007] determining whether the driving trajectory is an illegal driving trajectory on the matched road according to a matching degree between the driving trajectory and the associated road and road driving requirements;
[0008] Obtain the roads where the matching non-compliant driving trajectories meet the set conditions.
[0009] Optionally, determining the road associated with the driving trajectory includes:
[0010] Determine the tile map associated with each driving trajectory;
[0011] Filter roads located in the tile map and having a predetermined road type as roads associated with the driving trajectory.
[0012] Optionally, determining a tile map associated with each driving trajectory includes:
[0013] According to the position of the track points contained in each driving track, determine the tile map where the track points fall;
[0014] The tile map where the trajectory point falls is used as the tile map associated with the driving trajectory.
[0015] Optionally, if the predetermined type is a one-way road, the step of screening the roads located in the tile map and having the predetermined type as the roads associated with the driving trajectory includes:
[0016] According to the identifier of the tile map associated with each driving track, a one-way road located in the tile map is indexed from the road library as the road associated with the driving track.
[0017] Optionally, determining whether the driving trajectory is an illegal driving trajectory on the matched road according to the matching degree between the driving trajectory and the associated road and the road driving requirements includes:
[0018] Determining a trajectory direction based on trajectory points in the driving trajectory;
[0019] determining a distance between a trajectory point in the driving trajectory and an associated road, and if a number of trajectory points having a distance less than a predetermined distance threshold satisfies a quantity condition, the associated road is a road that matches the driving trajectory;
[0020] Determine whether the driving direction of the trajectory is consistent with the driving direction of the matched road, so as to determine whether the driving trajectory is an illegal driving trajectory on the matched road.
[0021] Optionally, it also includes:
[0022] An index relationship between the road information and the identifier of the tile map to which the road belongs is pre-established and saved in the road library, wherein the road includes a one-way road.
[0023] Optionally, determining the distance from a trajectory point in the driving trajectory to an associated road includes:
[0024] For each associated road, extract a segment of the driving trajectory from the driving trajectory;
[0025] The distances of the trajectory points in the trajectory segment to the corresponding associated roads are determined.
[0026] In a second aspect, an embodiment of the present application provides a prompting method, including:
[0027] Get driving position;
[0028] Determine whether the driving position is close to the road determined based on the detection method described in the first aspect above. If so, output corresponding prompt information.
[0029] In a third aspect, an embodiment of the present application provides a detection device, comprising:
[0030] A trajectory collection module, configured to obtain a driving trajectory set, wherein the driving trajectory set includes more than one driving trajectory;
[0031] A first determining module, configured to determine a road associated with the driving trajectory;
[0032] a second determining module, configured to determine whether the driving trajectory is an illegal driving trajectory on the matched road according to a matching degree between the driving trajectory and the associated road and road driving requirements;
[0033] The road determination module is used to obtain a road where the matching non-compliant driving trajectory meets the set conditions.
[0034] In a fourth aspect, an embodiment of the present application provides a prompting device, comprising:
[0035] An acquisition module, used to obtain the driving position;
[0036] A prompt module is used to determine whether the driving position is close to the Figure 1 If the road is determined by the detection method of the embodiment shown, corresponding prompt information is output.
[0037] In a fifth aspect, an embodiment of the present application provides a computing device, including a processing component and a storage component;
[0038] The storage component stores one or more computer instructions; the one or more computer instructions are used to be called and executed by the processing component to perform the detection method as described in the first aspect above.
[0039] In a sixth aspect, an embodiment of the present application provides an electronic device, including a processing component and a storage component;
[0040] The storage component stores one or more computer instructions; the one or more computer instructions are used to be called and executed by the processing component to execute the prompt method described by the third party.
[0041] In an embodiment of the present application, a driving trajectory set is obtained, which includes more than one driving trajectory, and a road associated with the driving trajectory is determined. Based on the matching degree between the driving trajectory and the associated road and the road driving requirements, it is determined whether the driving trajectory is a non-compliant driving trajectory on the matched road; a road where the matched non-compliant driving trajectory meets the set conditions is obtained. By mining a large number of driving trajectories, it is possible to mine roads where illegal driving occurs, thereby achieving effective and accurate road detection.
[0042] These and other aspects of the present application will become more readily apparent from the description of the following embodiments. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, a brief introduction will be given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0044] Figure 1 A flow chart of an embodiment of a detection method provided by the present application is shown;
[0045] Figure 2 A flow chart showing another embodiment of a detection method provided by the present application is shown;
[0046] Figure 3 A flowchart of an embodiment of a prompting method provided by the present application is shown;
[0047] Figure 4 A schematic diagram of scene interaction in a practical application of an embodiment of the present application is shown;
[0048] Figure 5 A schematic structural diagram of an embodiment of a detection device provided by the present application is shown;
[0049] Figure 6 A schematic structural diagram of an embodiment of a computing device provided by the present application is shown;
[0050] Figure 7 A schematic structural diagram of an embodiment of a prompting device provided by the present application is shown;
[0051] Figure 8 A structural schematic diagram of an embodiment of an electronic device provided by the present application is shown. DETAILED DESCRIPTION
[0052] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.
[0053] In some of the processes described in the specification and claims of this application and the above-mentioned figures, multiple operations that appear in a specific order are included, but it should be clearly understood that these operations may not be executed in the order in which they appear in this document or may be executed in parallel. The serial numbers of the operations, such as 101, 102, etc., are only used to distinguish between different operations, and the serial numbers themselves do not represent any order of execution. In addition, these processes may include more or fewer operations, and these operations may be executed in sequence or in parallel. It should be noted that the descriptions of "first", "second", etc. in this document are used to distinguish different messages, devices, modules, etc., and do not represent a sequential order, nor do they limit "first" and "second" to being different types.
[0054] As can be seen from the background, for reasons such as traffic safety and maintaining traffic order, certain types of roads currently have driving requirements, such as allowing only one-way travel or requiring travel speeds below the speed limit. However, if drivers fail to heed these driving requirements, or if they become confused due to complex terrain and mistakenly enter roads with specific driving requirements, they can easily violate these requirements, endangering road safety and potentially causing traffic accidents, resulting in significant harm.
[0055] Taking the example of a one-way road requiring one-way traffic, existing technologies often deploy sensors on the road to identify wrong-way vehicles, or use cameras to identify wrong-way vehicles through image recognition. Drivers are then warned of wrong-way driving or penalized to encourage compliance with traffic rules. However, this detection method relies on hardware, which can be prone to equipment aging, resulting in low detection accuracy. Furthermore, it can only issue warnings after a vehicle has already violated traffic regulations, failing to effectively address road safety hazards. Furthermore, some roads may experience illegal driving due to objective reasons such as inconspicuous road signs. Therefore, the inventors envisioned that if these roads prone to illegal driving could be identified and appropriate safety measures could be implemented, road safety hazards could be addressed to a certain extent.
[0056] However, the inventors found that if sensors or cameras are still used to identify illegal vehicles and the number of illegal vehicles is counted to determine whether the road is prone to illegal driving, problems such as low detection accuracy will still exist.
[0057] In order to achieve effective and accurate road detection, the inventors proposed the technical solution of the present application after a series of studies. In the embodiment of the present application, a driving trajectory set can be obtained, and the driving trajectory set includes more than one driving trajectory. Then, the road associated with the driving trajectory is determined, and according to the matching degree between the driving trajectory and the associated road and the road driving requirements, it is determined whether the driving trajectory is a non-compliant driving trajectory on the matched road; then, after statistical analysis, the road where the matched non-compliant driving trajectory meets the set conditions is obtained. The road where the matched non-compliant driving trajectory meets the set conditions is a road with a high incidence of illegal driving, so that corresponding safety measures can be adopted for the road. The embodiment of the present application can achieve statistical processing of road network information in any area by performing statistical processing on a large number of driving trajectories, with high coverage, no reliance on hardware equipment, and high accuracy, thereby achieving effective and accurate road detection.
[0058] The following will be combined with the drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are only part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by those skilled in the art without making creative efforts are within the scope of protection of this application.
[0059] Figure 1 This is a flow chart of an embodiment of a detection method provided in an embodiment of the present application. The method may include the following steps:
[0060] 101: Get the driving trajectory set.
[0061] The driving trajectory set includes more than one driving trajectory; the driving trajectory can be obtained by client positioning.
[0062] The client can refer to an onboard device installed in a vehicle or a portable user terminal carried by the vehicle driver, such as a mobile phone. The client can use the GPS (Global Positioning System) to detect the driving trajectory, where the driving trajectory can refer to a sequence of trajectory points arranged in chronological order, with corresponding GPS coordinates, and the time intervals between adjacent trajectory points being within a predetermined time range. The client follows the movement of the vehicle, and the driving trajectory obtained by its positioning is the vehicle's driving trajectory. The vehicle can refer to a non-motorized vehicle or a motor vehicle, etc.
[0063] In practical applications, a client can refer to a client capable of running an electronic map or implementing navigation or warning functions based on an electronic map. The client can utilize GPS positioning to obtain a driving trajectory when detecting that the vehicle is in motion. The client can determine that the vehicle is in motion when the driving speed exceeds a certain value, or when a navigation instruction is detected, thereby obtaining the driving trajectory through positioning. Optionally, before locating the driving trajectory, the client can first output a notification message prompting the user to allow the use of their driving trajectory. After receiving the user's confirmation request, the client can then locate the driving trajectory and upload it to the server.
[0064] The server can obtain a large number of driving trajectories uploaded by clients based on their respective positioning. Each client may upload at least one driving trajectory, and the driving trajectories corresponding to different clients constitute the crowdsourced driving trajectory.
[0065] In an embodiment of the present application, the driving trajectory set may be a plurality of driving trajectories collected within a predetermined time range, which may be obtained by positioning multiple clients. The predetermined time range may, for example, refer to within 1 month or within 3 months, so that processing can be performed based on the driving trajectories within a certain time range to improve detection accuracy.
[0066] 102: Determine the road associated with the driving trajectory.
[0067] A road can be represented by a sequence of shape points consisting of multiple shape points. Each shape point is a GPS point with corresponding GPS coordinates. Road network information stores road-related information, such as road type, road signs, road driving requirements, and shape point sequences. The road associated with a driving trajectory can be determined by combining the positions of the trajectory points and the road shape points.
[0068] As an optional method, a tile map associated with each driving track may be first determined; and roads located in the tile map and having a predetermined road type may be selected as roads associated with the driving track.
[0069] Among them, the tile map can refer to a grid map obtained by gridding an electronic map, for example, it can be obtained by using a spatial indexing algorithm such as the TMS (tile map service) algorithm, the R-tree algorithm, or the H3 (open source hexagonal hierarchical index grid algorithm) algorithm. This application does not make specific limitations on this.
[0070] Tile maps can be used to establish an index relationship between roads of predetermined types and driving trajectories. When a driving trajectory matches a road of predetermined types, it must belong to the same tile map. Therefore, roads that belong to the same tile map as the driving trajectory can be first screened as roads associated with the driving trajectory. Subsequent judgments are only made on roads associated with the driving trajectory, which can reduce the amount of calculation and improve calculation efficiency.
[0071] The predetermined type of road refers to a road with certain type of road driving requirements. For example, a road that only allows one-way driving is called a one-way road, and a road where the driving speed is lower than the speed limit is called a speed-limited road.
[0072] Optionally, the tile map associated with each driving track may be determined as follows:
[0073] According to the position of the track points contained in each driving track, determine the tile map where the track points fall;
[0074] The tile map where the track point falls is used as the tile map associated with the driving track. It can be seen that each driving track may be associated with multiple tile maps.
[0075] 103 : Determine whether the driving trajectory is an illegal driving trajectory on the matched road according to the matching degree between the driving trajectory and the associated road and the road driving requirements.
[0076] The matching of the driving trajectory with the associated road can be considered as the driving trajectory generated by driving on the road. An non-compliant driving trajectory can refer to a driving trajectory that violates the road driving requirements. The road driving requirements can, for example, specify the driving direction, driving speed, etc. If the driving characteristics of the driving trajectory do not meet the road driving requirements, it is an non-compliant driving trajectory.
[0077] The degree of matching between the driving trajectory and the associated road can be determined by judging the distance between the driving trajectory and the road, and can also be determined in combination with angles, etc. For example, the minimum distance from each trajectory point in the driving trajectory to the road can be calculated. If the number of trajectory points with a minimum distance less than a certain distance meets certain quantity requirements, such as being greater than a certain value or accounting for more than a certain proportion, then the driving trajectory can be considered to match the predetermined category of road. Otherwise, it is not matched. Alternatively, the angle between the driving trajectory and the road can be calculated. If the angle is less than a predetermined angle, then the driving trajectory can also be considered to match the road. Since both the driving trajectory and the road can be composed of points, whether the trajectory position matches the road position can be determined by converting the driving trajectory and the road into point or line form, and judging whether the point and line or the line and line match. There are many ways to judge, and this application does not specifically limit this.
[0078] Roads can be obtained from road network information, which may refer to road network information corresponding to a specific area, so as to achieve the purpose of road detection in a specific area by adopting the technical solution of this application. The specific area may, for example, refer to the area where a certain country is located, or the area where a certain city is located, or the area where a certain province is located, etc.
[0079] 104: Obtaining roads where the matched non-compliant driving trajectory meets the set conditions.
[0080] Alternatively, the set condition may be that the number of matched driving trajectories of non-compliant driving is greater than a predetermined number, etc. There may be multiple roads where the matched driving trajectories of non-compliant driving meet the set condition.
[0081] In this embodiment, road mining is implemented for driving trajectories in a driving trajectory set. Based on the matching degree between the driving trajectory and the associated road and the road driving requirements, it is determined whether the driving trajectory is a non-compliant driving trajectory on the matching road. By collecting statistics on non-compliant driving trajectories, it is possible to obtain roads where the matching non-compliant driving trajectories meet the set conditions, i.e., roads with a high incidence of illegal driving.
[0082] Roads where the matched non-compliant driving trajectories meet set conditions can be processed accordingly, such as notifying relevant personnel so that corresponding road improvement measures can be formulated.
[0083] In addition, the driving position of the vehicle can be obtained while the vehicle is driving, and when the driving position meets the prompt condition, the corresponding prompt information is output.
[0084] In addition, as another embodiment, the road where the matched non-compliant driving trajectory meets the set conditions can be specifically marked in the electronic map, so that when the client runs the electronic map and detects that the driving position meets the prompt conditions, the prompt information corresponding to the target predetermined category road can be output to remind the user that the target predetermined category road is a road with a high incidence of violations, thereby achieving an early warning effect.
[0085] For example, the prompt condition may refer to the vehicle's proximity to a road that meets the specified conditions. This can be determined by determining if the distance between the vehicle's trajectory and the road is within a predetermined range, or if the road the vehicle is on is adjacent to the road. For one-way roads, the distance between the vehicle's location and the road can refer to the distance between the vehicle's location and the end point of the road. This allows for prompts to be issued even before the vehicle enters the road, providing a more effective early warning, preventing violations, and further improving road safety.
[0086] In an actual application, the predetermined type may refer to a one-way road. Therefore, the step of screening roads located in the tile map and having a predetermined road type as roads associated with the driving trajectory may include:
[0087] According to the identifier of the tile map associated with each driving track, a one-way road located in the tile map is indexed from the road library as the road associated with the driving track.
[0088] The road library may be created in advance, so in some embodiments, the method may further include:
[0089] An index relationship between the road information and the identifier of the tile map to which the road belongs is pre-established and saved in the road library, wherein the road includes a one-way road.
[0090] The road information may include road signs, shape point sequences, road driving requirements and other related information.
[0091] Based on tile identification, it is possible to quickly find driving tracks and one-way roads belonging to the same tile map.
[0092] Optionally, for one-way roads, an index relationship may be established between the road information of the one-way road and the identifier of the tile map to which its end shape point belongs. Therefore, when the predetermined type of road is a one-way road, the one-way road located in the tile map as the road associated with each driving track may be indexed from the road library based on the identifier of the tile map associated with the driving track, which may include:
[0093] According to the identifier of the tile map associated with each driving track, a one-way road with an end shape point located in the tile map is indexed from the road library as the road associated with the driving track.
[0094] For one-way roads, in some embodiments, determining whether the driving trajectory is an illegal driving trajectory on the matched road based on the matching degree between the driving trajectory and the associated road and the road driving requirements may include:
[0095] Determining a trajectory direction based on trajectory points in the driving trajectory;
[0096] determining a distance between a trajectory point in the driving trajectory and an associated road, and if a number of trajectory points having a distance less than a predetermined distance threshold satisfies a quantity condition, the associated road is a road that matches the driving trajectory;
[0097] Determine whether the driving direction of the trajectory is consistent with the driving direction of the matched road, so as to determine whether the driving trajectory is an illegal driving trajectory on the matched road.
[0098] Here, the minimum distance from each trajectory point in the driving trajectory to each associated road can be calculated. If the number of trajectory points whose minimum distance is less than a predetermined distance threshold satisfies a sufficient number condition, then the associated road is used as the road matching the driving trajectory.
[0099] Since the shape points of the associated roads form a straight line or a curve, the minimum distance from the trajectory point to the associated road can be calculated according to the calculation formula from point to straight line or point to curve, which will not be repeated here.
[0100] The quantity condition can be, for example, that the number of trajectory points whose minimum distance is less than a predetermined distance threshold is greater than a predetermined number, or the ratio of the number of trajectory points whose minimum distance is less than a predetermined distance threshold to the total number is greater than a predetermined proportion, such as 80%, etc., then the driving trajectory can be considered to match the associated road, otherwise it is considered to be mismatched.
[0101] Of course, as another implementation method, the angle between the driving trajectory and the associated road can also be calculated. If the angle is less than a predetermined angle, and / or the number of trajectory points with a distance less than a predetermined distance meets the quantity condition, the driving trajectory is considered to match the associated road.
[0102] In some embodiments, determining the distance from a trajectory point in the driving trajectory to an associated road may include:
[0103] For each associated road, extract a segment of the driving trajectory;
[0104] Determine the distance from the track point in the track segment to the corresponding associated road
[0105] A driving trajectory may be associated with multiple roads. For each road, a section of the trajectory corresponding to the road can be intercepted from the driving trajectory. The specific interception method can be, for example: taking the trajectory point belonging to the same tile map as the road as the starting trajectory point, and intercepting a certain number of trajectory points from the starting trajectory point to form a section of the trajectory corresponding to the road. The certain number can be predetermined or determined in combination with the length of the road.
[0106] When illegal driving occurs on a one-way road, that is, driving in the opposite direction, the vehicle enters from the end of the road. Optionally, a trajectory point belonging to the same tile map as the end shape point of the road can be used as the starting trajectory point.
[0107] Combined with the above description, it can be seen that in a practical application, the technical solution of the present application can be applied to the detection of one-way roads. The following takes the one-way road detection as an example to describe the technical solution of the present application. Figure 2 As shown in FIG, it is a flowchart of another embodiment of a detection method provided in an embodiment of the present application, and the method may include the following steps:
[0108] 201: Acquire a driving trajectory set, where the driving trajectory set includes more than one driving trajectory.
[0109] 202: Determine a one-way road associated with the driving trajectory.
[0110] 203: Determine whether the driving trajectory is an illegal driving trajectory on the matched road according to the matching degree between the driving trajectory and the associated one-way road and the road driving direction.
[0111] 204: Obtaining a one-way road where the matched non-compliant driving trajectory meets the set conditions.
[0112] The operations of steps 201 to 203 are the same as Figure 1 The difference between steps 101 to 103 in the embodiment shown is that the road is a one-way road. Other identical or similar steps can be found in detail. Figure 1 As shown in the embodiments, no further details will be given here.
[0113] In some embodiments, the method may further include:
[0114] The road where the matched non-compliant driving trajectory meets the set conditions is marked in the electronic map, so that when the electronic map runs and detects that the driving position is close to the road, a prompt message is output to achieve the purpose of reminding the user.
[0115] The prompt information may include sub-prompt information in the form of text, image and / or sound, so as to achieve the purpose of highlighting the reminder to the user and improve the effectiveness of the warning.
[0116] like Figure 3 As shown, the embodiment of the present application also provides a prompt method. The technical solution of this embodiment is executed by the client and may include the following steps:
[0117] 301: Get driving location.
[0118] 302: Determine whether the driving position is close to the Figure 1 If the road is determined by the detection method of the embodiment shown, step 303 is executed.
[0119] based on Figure 1 The road determined by the detection method of the embodiment shown means the road determined by Figure 1 The technical solution of the embodiment shown determines that the matching non-compliant driving trajectory meets the set conditions of the road. The specific determination method can be found in the previous embodiment and will not be repeated here.
[0120] 303: Output corresponding prompt information.
[0121] In addition, the client can also locate and obtain the driving trajectory, and upload the driving trajectory to the server, so that the server can use it as one of the crowdsourced driving trajectories, participate in road detection according to the technical solution of the embodiment of this application, and determine the target predetermined category road.
[0122] Wherein, inputting the corresponding prompt information may include: displaying the prompt information corresponding to the road in text or image, such as displaying the prompt information in a display interface of an electronic map.
[0123] In addition, the driving position can be obtained by outputting an electronic map on the client, and detecting the driving position when the electronic map is in a navigation state, and the prompt information can be displayed accordingly in the navigation interface, etc.
[0124] Is the driving position close to the Figure 1 The road identified by the detection method of the illustrated embodiment can be determined based on whether the distance between the driving position and the road is within a predetermined distance range, or whether the road on which the driving position is located is adjacent to the road. For one-way roads, the distance between the driving position and the road can refer to the distance between the driving position and the end point of the road. This allows for a warning before entering the road, achieving a more effective early warning function, preventing violations, and further improving road safety.
[0125] When the road is a one-way road, the technical solution of this application can effectively and accurately identify one-way roads with high incidence of wrong-way traffic, thereby achieving the purpose of warning of high incidence of wrong-way traffic.
[0126] For ease of understanding, take a one-way road as an example, combined with Figure 4 The scenario interaction diagram shown introduces the technical solution of this application. Assuming that road detection is performed in a target area, the server 401 can first collect crowdsourced driving trajectories, that is, collect driving trajectories uploaded by multiple clients 402. Client 402 can refer to a client that can run an electronic map, or of course, a client that can perform GPS detection. The client can be configured on an on-board device in the vehicle or on a user's portable mobile terminal to achieve the purpose of detecting the vehicle's driving trajectory while the vehicle is driving.
[0127] The server can first filter out one-way roads from the road network information of the electronic map of the target area, and determine the tile map tile to which the end shape point of the one-way road belongs. Based on the tileid of the tile map to which it belongs, an index relationship with its road information is established and saved in the one-way road library.
[0128] Afterwards, a set of driving trajectories within a predetermined time range is determined, that is, the crowdsourced driving trajectories collected within the predetermined time range. For the position of each trajectory point in each driving trajectory, the tile map in which the trajectory point falls is determined, and used as the tile map associated with the driving trajectory. Based on the tileID of the tile map associated with the driving trajectory, the one-way road located in the tile map is indexed from the one-way road library as the one-way road associated with the driving trajectory. Afterwards, the driving direction of the trajectory can be determined based on the trajectory points of the driving trajectory. The distance from the trajectory point to the associated one-way road is determined. If the number of trajectory points with a distance less than a predetermined distance threshold meets the quantity condition, the one-way road associated with the driving trajectory is used as the road matched by the driving trajectory. Afterwards, it is determined whether the driving direction of the trajectory is consistent with the road driving direction of the matched one-way road. If not, the driving trajectory can be considered as an illegal driving trajectory on its matched road, otherwise it is a compliant driving trajectory.
[0129] Afterwards, a matching one-way road with a driving trajectory of non-compliant driving that meets the set conditions is obtained. Based on the one-way road that meets the set conditions, when the vehicle is driving and the driving position is detected to be close to the one-way road, corresponding prompt information can be output to achieve the purpose of early warning.
[0130] Figure 5 A schematic structural diagram of an embodiment of a detection device provided in an embodiment of the present application, the device may include:
[0131] A trajectory collection module 501 is used to obtain a driving trajectory set, wherein the driving trajectory set includes more than one driving trajectory;
[0132] A first determining module 502 is configured to determine a road associated with the driving trajectory;
[0133] A second determining module 503 is configured to determine whether the driving trajectory is an illegal driving trajectory on the matched road based on the matching degree between the driving trajectory and the associated road and the road driving requirements;
[0134] The road determination module 504 is configured to obtain a road where the matching non-compliant driving trajectory meets a set condition.
[0135] In some embodiments, the first determination module may be specifically configured to determine a tile map associated with each driving trajectory; and select roads located in the tile map and having a predetermined road type as roads associated with the driving trajectory.
[0136] In some embodiments, the first determination module determines the tile map associated with each driving trajectory, which may include determining the tile map in which the trajectory point falls according to the position of the trajectory point contained in each driving trajectory; and using the tile map in which the trajectory point falls as the tile map associated with the driving trajectory.
[0137] In some embodiments, if the predetermined type is a one-way road, the first determination module may filter out roads located in the tile map and having a road type of the predetermined type as roads associated with the driving trajectory, which may include: according to the identifier of the tile map associated with each driving trajectory, indexing the one-way roads located in the tile map from the road library as roads associated with the driving trajectory.
[0138] In some embodiments, the second determination module can be specifically used to determine the driving direction of the trajectory based on the trajectory points in the driving trajectory; determine the distance from the trajectory points in the driving trajectory to the associated road, and if the number of trajectory points with a distance less than a predetermined distance threshold meets the quantity condition, the associated road is the road that matches the driving trajectory; determine whether the driving direction of the trajectory is consistent with the driving direction of the matched road to determine whether the driving trajectory is an illegal driving trajectory on its matched road.
[0139] In some embodiments, further comprising:
[0140] The library establishment module pre-establishes an index relationship between the road information and the identifier of the tile map to which it belongs, and saves the information into the road library, wherein the road includes a one-way road.
[0141] In some embodiments, the second determination module determining the distance from the trajectory point in the driving trajectory to the associated road may include: for each associated road, intercepting a trajectory segment from the driving trajectory; and determining the distance from the trajectory point in the trajectory segment to the corresponding associated road.
[0142] Figure 5 The detection device can perform Figure 1 The implementation principle and technical effects of the detection method described in the embodiment are not described in detail. The specific manner in which each module and unit performs operations in the detection device in the above embodiment has been described in detail in the embodiment of the method, and will not be elaborated here.
[0143] In one possible design, Figure 5 The detection device of the embodiment shown can be implemented as a computing device, such as Figure 6 As shown, the computing device may include a storage component 601 and a processing component 602;
[0144] The storage component 601 stores one or more computer instructions, wherein the one or more computer instructions are called and executed by the processing component 602 to implement the following Figure 1 The detection method shown.
[0145] The processing component 602 may include one or more processors to execute computer instructions to complete all or part of the steps in the above method. Of course, the processing component may also be implemented as one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the above method.
[0146] The storage component 601 is configured to store various types of data to support operations in the device. The storage component can be implemented by any type of volatile or non-volatile memory device, or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk, or optical disk.
[0147] Of course, a computing device may also include other components, such as input / output interfaces, communication components, etc.
[0148] The input / output interface provides an interface between the processing component and peripheral interface modules, which may be output devices, input devices, etc. The communication component is configured to facilitate wired or wireless communication between the computing device and other devices.
[0149] Among them, the computing device can be a physical device or an elastic computing host provided by a cloud computing platform, etc. In this case, the computing device can refer to a cloud server, and the above-mentioned processing components, storage components, etc. can be basic server resources rented or purchased from the cloud computing platform.
[0150] The present application also provides a computer-readable storage medium storing a computer program, wherein the computer program can achieve the above-mentioned Figure 1 The detection method of the embodiment shown.
[0151] Figure 7 This is a schematic structural diagram of an embodiment of a prompt device provided in an embodiment of the present application. The device may include:
[0152] An acquisition module 701 is used to acquire a driving position;
[0153] Prompt module 702, used to determine whether the driving position is close to the Figure 1 If the road is determined by the detection method of the embodiment shown, corresponding prompt information is output.
[0154] Figure 7 The prompting device can execute Figure 3 The implementation principle and technical effects of the prompt method described in the illustrated embodiment will not be described in detail. The specific manner in which each module and unit performs operations in the detection device in the above embodiment has been described in detail in the embodiment of the method, and will not be elaborated here.
[0155] In one possible design, Figure 7 The prompting device of the embodiment shown can be implemented as an electronic device, such as Figure 8 As shown, the electronic device may include a storage component 801 and a processing component 802;
[0156] The storage component 801 stores one or more computer instructions, wherein the one or more computer instructions are called and executed by the processing component 802 to implement the following Figure 1 The prompt method shown.
[0157] The processing component 802 may include one or more processors to execute computer instructions to complete all or part of the steps in the above method. Of course, the processing component may also be implemented as one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the above method.
[0158] The storage component 801 is configured to store various types of data to support operations in the device. The storage component can be implemented by any type of volatile or non-volatile memory device, or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk, or optical disk.
[0159] Of course, the electronic device may also include other components, such as input / output interfaces, communication components, display components, etc.
[0160] The input / output interface provides an interface between the processing component and peripheral interface modules, which can be output devices, input devices, etc. The communication component is configured to facilitate wired or wireless communication between the computing device and other devices. The display component is used to display the corresponding content output by the electronic device, such as prompt information. The display component can be an electroluminescent (EL) element, a liquid crystal display, a microdisplay with a similar structure, or a direct retinal display or similar laser scanning display.
[0161] In practical applications, the electronic device may be, for example, a vehicle-mounted device, or may be a portable mobile terminal such as a mobile phone.
[0162] The present application also provides a computer-readable storage medium storing a computer program, wherein the computer program can achieve the above-mentioned Figure 3 The detection method of the embodiment shown.
[0163] Those skilled in the art will clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0164] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, i.e., they may be located in one location or distributed across multiple network units. Some or all of the modules may be selected based on actual needs to achieve the objectives of the present embodiment. Persons of ordinary skill in the art will be able to understand and implement the present invention without inventive effort.
[0165] Through the description of the above embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus a necessary general hardware platform, or of course, by hardware. Based on this understanding, the essence of the above technical solution or the part that contributes to the existing technology can be embodied in the form of a software product. The computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a magnetic disk, an optical disk, etc., and includes a number of instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or certain parts of the embodiments.
[0166] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A detection method, wherein: include: Acquire a driving trajectory set, wherein the driving trajectory set includes more than one driving trajectory; determining a road associated with the driving trajectory; determining, based on a degree of matching between the driving trajectory and the associated road and the road driving requirements, whether the driving trajectory is an illegal driving trajectory on the matched road, wherein the illegal driving trajectory refers to a driving trajectory that violates the road driving requirements; Obtaining roads where the matched non-compliant driving trajectory meets the set conditions; Wherein, determining the road associated with the driving trajectory includes: Determine the tile map associated with each driving trajectory; A road located in the tile map and having a predetermined road type is selected as a road associated with the driving trajectory, wherein the predetermined road type refers to a road having a certain type of road driving requirement.
2. The method according to claim 1, wherein Determining the tile map associated with each driving trajectory includes: According to the position of the track points contained in each driving track, determine the tile map where the track points fall; The tile map where the trajectory point falls is used as the tile map associated with the driving trajectory.
3. The method according to claim 2, wherein: If the predetermined type is a one-way road, the step of screening roads located in the tile map and having the predetermined type as roads associated with the driving trajectory includes: According to the identifier of the tile map associated with each driving track, a one-way road located in the tile map is indexed from the road library as the road associated with the driving track.
4. The method according to any one of claims 1 to 3, wherein: The determining, based on the matching degree between the driving trajectory and the associated road and the road driving requirements, whether the driving trajectory is an illegal driving trajectory on the matched road includes: Determining a trajectory direction based on trajectory points in the driving trajectory; Determining a distance from a trajectory point in the driving trajectory to an associated road; If the number of trajectory points whose distance is less than a predetermined distance threshold satisfies a quantity condition, the associated road is a road that matches the driving trajectory; Determine whether the driving direction of the trajectory is consistent with the driving direction of the matched road, so as to determine whether the driving trajectory is an illegal driving trajectory on the matched road.
5. The method according to claim 3, wherein Also includes: An index relationship between the road information and the identifier of the tile map to which the road belongs is pre-established and saved in the road library, wherein the road includes a one-way road.
6. The method according to claim 4, wherein: Determining the distance from the trajectory point in the driving trajectory to the associated road includes: For each associated road, extract a segment of the driving trajectory from the driving trajectory; The distances of the trajectory points in the trajectory segment to the corresponding associated roads are determined.
7. A prompting method, wherein: include: Get driving position; Determine whether the driving position is close to the road determined based on the method according to any one of claims 1-6, and if so, output corresponding prompt information.
8. A detection device, wherein: include: A trajectory collection module, configured to obtain a driving trajectory set, wherein the driving trajectory set includes more than one driving trajectory; A first determining module, configured to determine a road associated with the driving trajectory; a second determining module, configured to determine whether the driving trajectory is an illegal driving trajectory on the matched road based on a matching degree between the driving trajectory and the associated road and the road driving requirements, wherein the illegal driving trajectory refers to a driving trajectory that violates the road driving requirements; A road determination module is used to obtain a road where the matching non-compliant driving trajectory meets the set conditions; Wherein, determining the road associated with the driving trajectory includes: Determine the tile map associated with each driving trajectory; A road located in the tile map and having a predetermined road type is selected as a road associated with the driving trajectory, wherein the predetermined road type refers to a road having a certain type of road driving requirement.
9. A computing device, wherein: including processing components and storage components; The storage component stores one or more computer instructions; the one or more computer instructions are used to be called and executed by the processing component to execute the detection method according to any one of claims 1 to 6 or the prompt method according to claim 7.
Citation Information
Patent Citations
GPS positioning and road matching method based on grid division
CN106225791A
Dangerous traveling information provision device, dangerous traveling decision program and dangerous traveling decision method
JP2009140008A