Driving state judgment method, device, readable storage medium and electronic device
By setting a location information buffer area on the server side and screening vehicle azimuth information, real-time judgment of the driving status of non-motor vehicles, the problem of difficulty in monitoring non-motor vehicles is solved, and the efficiency of traffic management is improved. Security.
Patent Information
- Application Number
- CN202011043485.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-09-28
- Publication Date
- 2024-11-29
- Estimated Expiration
- 2040-09-28
AI Technical Summary
The existing traffic management system is difficult to effectively monitor the illegal driving of non-motor vehicles, resulting in increased traffic congestion and safety risks.
By setting a position information buffer area on the server side, receiving and filtering the azimuth information of the vehicle, determining the driving trajectory and road information, and judging the driving status of the vehicle in real time, and monitoring of illegal driving of non-motor vehicles is achieved.
Real-time judgment of the vehicle's driving status is realized, the complexity and difficulty of judgment are reduced, and illegal driving behaviors can be discovered and corrected in a timely manner, improving the efficiency and safety of traffic management.
Smart Images

Figure CN112183349B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a driving state judgment method, device, readable storage medium and electronic equipment. Background Art
[0002] In order to ease traffic congestion, save energy and reduce emissions, and advocate low-carbon life, non-motorized vehicles such as bicycles and electric motorcycles are widely used in major cities, greatly facilitating people's lives. However, due to the light penalties for non-motorized vehicles in traffic management, drivers believe that illegal driving in certain scenarios will save more time, resulting in many non-motorized vehicles driving illegally. This in turn causes negative impacts such as traffic congestion and high risk. At the same time, since the current traffic management system is mainly aimed at motor vehicles, it is difficult to monitor the illegal driving of non-motorized vehicles. Summary of the invention
[0003] In view of this, an embodiment of the present invention provides a driving status judgment method, device, readable storage medium and electronic device, which are intended to monitor whether illegal driving occurs during the driving process of a vehicle.
[0004] In a first aspect, an embodiment of the present invention provides a method for determining a driving state, the method comprising:
[0005] Determine the location information cache area;
[0006] Receiving a plurality of candidate position information including azimuth angles uploaded in sequence, wherein the candidate position information is used to characterize a vehicle position attribute;
[0007] In response to the candidate location information satisfying a first preset condition, storing the candidate location information as valid location information in the location information cache area;
[0008] In response to satisfying the second preset condition, retrieving all valid position information in the current position information cache area to determine the driving trajectory;
[0009] Determine the driving azimuth corresponding to the driving trajectory according to the azimuth of each valid position information;
[0010] Determining road information corresponding to the driving trajectory, the road information including a road azimuth;
[0011] The driving state of the vehicle is determined according to the driving azimuth and the road azimuth.
[0012] In a second aspect, an embodiment of the present invention provides a driving state determination device, the device comprising:
[0013] A cache area determination module, used to determine a location information cache area;
[0014] An information acquisition module, used to receive a plurality of candidate position information including azimuth angles uploaded in sequence, wherein the candidate position information is used to characterize a vehicle position attribute;
[0015] an information screening module, configured to store the candidate location information as valid location information in the location information cache area in response to the candidate location information satisfying a first preset condition;
[0016] A trajectory determination module, configured to retrieve all valid position information in the current position information buffer area in response to satisfying a second preset condition, so as to determine a driving trajectory;
[0017] A first azimuth angle determination module, used to determine the driving azimuth angle corresponding to the driving trajectory according to the azimuth angle of each valid position information;
[0018] A second azimuth angle determination module, used to determine road information corresponding to the driving trajectory, wherein the road information includes a road azimuth angle;
[0019] The driving state judgment module is used to determine the driving state of the vehicle according to the driving azimuth and the road azimuth.
[0020] In a third aspect, an embodiment of the present invention provides a computer-readable storage medium for storing computer program instructions, wherein the computer program instructions implement the method described in the first aspect when executed by a processor.
[0021] In a fourth aspect, an embodiment of the present invention provides an electronic device, comprising a memory and a processor, wherein the memory is used to store one or more computer program instructions, wherein the one or more computer program instructions are executed by the processor to implement the method described in the first aspect.
[0022] The embodiment of the present invention determines a location information cache area and receives multiple candidate location information including azimuths uploaded in sequence, and stores the candidate location information that meets the first preset condition as valid location information in the location information cache area. When the second preset condition is met, all valid location information in the current location information cache area is retrieved to determine the driving trajectory. The driving azimuth and road azimuth corresponding to the driving trajectory are further determined, and the driving state of the vehicle is determined based on the driving azimuth and road azimuth. The embodiment of the present invention can judge the driving state of the vehicle in real time during the driving process of the vehicle. By setting the cache area to retrieve the information in the cache area for calculation when the preset conditions are met, the driving state judgment is performed on the vehicle driving path segment by segment, reducing the complexity and difficulty of the judgment process. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] The above and other objects, features and advantages of the present invention will become more apparent through the following description of the embodiments of the present invention with reference to the accompanying drawings, in which:
[0024] Figure 1 A schematic diagram of a driving state determination system using a driving state determination method according to an embodiment of the present invention;
[0025] Figure 2 A flow chart of a method for determining a driving state according to an embodiment of the present invention;
[0026] Figure 3 A schematic diagram of candidate location information according to an embodiment of the present invention;
[0027] Figure 4 A schematic diagram of a driving trajectory and a corresponding road according to an embodiment of the present invention;
[0028] Figure 5 A schematic diagram of a driving state determination process of an optional implementation of an embodiment of the present invention;
[0029] Figure 6 A schematic diagram of a driving state determination process according to another optional implementation of an embodiment of the present invention;
[0030] Figure 7 A schematic diagram of a driving state determination device according to an embodiment of the present invention;
[0031] Figure 8 Schematic diagram of an electronic device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0032] The present invention is described below based on embodiments, but the present invention is not limited to these embodiments. In the detailed description of the present invention below, some specific details are described in detail. It is possible for a person skilled in the art to fully understand the present invention without the description of these details. In order to avoid confusing the essence of the present invention, known methods, processes, flows, components and circuits are not described in detail.
[0033] In addition, persons of ordinary skill in the art will appreciate that the drawings provided herein are for illustration purposes and are not necessarily drawn to scale.
[0034] Unless the context clearly requires otherwise, words such as “include”, “including” and the like in the specification should be interpreted as including rather than being exclusive or exhaustive; that is, as meaning “including but not limited to”.
[0035] In the description of the present invention, it should be understood that the terms "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or implying relative importance. In addition, in the description of the present invention, unless otherwise specified, "plurality" means two or more.
[0036] Figure 1Schematic diagram of a driving state judgment system using the driving state judgment method of an embodiment of the present invention. Figure 1 As shown, the driving state judgment system includes a driving terminal 10 and a server 11. The driving terminal 10 includes a positioning device, which is used to determine the candidate position information according to a preset time sequence during driving and send it to the server 11. The server 11 is used to judge the driving state of each track in real time during the driving process of the driving terminal 10 based on the received candidate position information. The embodiment of the present invention can be applied to any application scenario in which the driving state of a vehicle can be judged by a server based on the location information of the vehicle. For example, the application scenario in which the shared bicycle / motorcycle platform server judges the driving state of the vehicle used by the user, and the application scenario in which the food delivery platform server judges whether the rider violates the driving rules.
[0037] In this embodiment, the driving terminal 10 may be a vehicle equipped with a module capable of running a computer program and having positioning and communication functions, or a general terminal device capable of running a computer program and having positioning and communication functions used by a vehicle user, such as a smart phone or a tablet computer. The server 11 may be a single server or a server cluster configured in a distributed manner.
[0038] The application of the embodiment of the present invention to a shared bicycle platform is used as an example for explanation. The driving terminal 10 is a shared bicycle equipped with a positioning device. After the user starts riding, the positioning device in the shared bicycle transmits candidate location information to the server in a predetermined time sequence. The server 11 determines multiple driving trajectories according to the order of acceptance of the candidate location information transmitted by each shared bicycle according to the preset rules, and judges the driving status corresponding to each driving trajectory in turn. Furthermore, when the server 11 judges that the driving status is illegal driving, it can determine the user terminal corresponding to the illegal shared bicycle and send a violation reminder to the user terminal.
[0039] The embodiment of the present invention can perform driving status judgment in sections during the driving process of the vehicle, so as to judge in real time whether the vehicle has violated the driving regulations.
[0040] Figure 2 FIG. 1 is a flow chart of a method for determining a driving state according to an embodiment of the present invention. Figure 2 As shown, the driving state judgment method includes the following steps:
[0041] Step S100: Determine the location information cache area.
[0042] Specifically, the location information cache is a blank cache area created by the server, which is used to store the location information received by the server. Optionally, when the server receives location information sent by multiple devices, multiple blank location information caches can be created, each of which has corresponding identification information, and is used to store the location information sent by the device corresponding to the identification information. In an embodiment of the present invention, the location information cache is a readable and writable cache, and the server can perform read and write operations on the location information cache at any time.
[0043] The application of the embodiment of the present invention to a shared bicycle platform is used as an example for explanation. The server stores vehicle identifications for representing multiple shared bicycles corresponding to the platform, and upon receiving vehicle unlocking information sent by the shared bicycle, creates a location information cache area corresponding to the vehicle identification. Each location information cache area is used to store the location information uploaded by the shared bicycle corresponding to the bicycle representation.
[0044] Step S200: receiving a plurality of candidate position information including azimuth angles uploaded in sequence.
[0045] Specifically, the candidate location information is sent through a driving terminal to characterize the vehicle location attribute. The driving terminal can be a vehicle with a communication function module, or a general terminal device used by a vehicle driver. The candidate location information may include information such as azimuth, longitude and latitude, vehicle speed, and accuracy. Among them, the azimuth is the horizontal angle between the clockwise direction from the due north direction to the vehicle's forward direction line. For example, when the vehicle's forward direction is due north, the azimuth is 0 degrees, when the vehicle's forward direction is due east, the azimuth is 90 degrees, when the vehicle's forward direction is due south, the azimuth is 180 degrees, and when the vehicle's forward direction is due west, the azimuth is 270 degrees. Further, the candidate location information also includes corresponding identification information for characterizing the driving terminal that sends the candidate location information. The server can determine the corresponding location information cache area based on the identification information.
[0046] In the embodiment of the present invention, the driving terminal can obtain the candidate position information in real time through the built-in positioning device, and upload the obtained candidate position information to the server in a predetermined time sequence during the driving process.
[0047] Figure 3 FIG. 1 is a schematic diagram of candidate location information according to an embodiment of the present invention. Figure 3 As shown, the driving terminal acquires candidate position information 30 including azimuth angles in a predetermined time sequence during driving, and uploads each candidate position information 30 to the server. The server determines the driving state of the driving terminal during driving based on the received multiple candidate position information 30.
[0048] Step S300: In response to the candidate location information satisfying a first preset condition, the candidate location information is stored in the location information cache as valid location information.
[0049] Specifically, when receiving the candidate location information sent by the driving terminal, the server determines the location information cache area corresponding to the driving terminal, and screens each candidate location information according to a predetermined first preset condition to delete invalid candidate location information and store valid candidate location information in the corresponding location information cache area.
[0050] In an optional implementation of an embodiment of the present invention, the valid candidate location information is determined based on the vehicle speed in each of the candidate location information. That is, the server pre-sets at least one invalid value for the vehicle speed, and determines whether the vehicle speed in the candidate location information is a preset invalid value after acquiring the candidate location information. When the vehicle speed is an invalid value, the candidate location information is determined to be invalid, and the candidate location information is deleted. When the vehicle speed is not an invalid value, the candidate location information is determined to be valid, and the valid candidate location information is stored in the corresponding location information cache. Optionally, the invalid value is 0, that is, the candidate location information with a vehicle speed of 0 is deleted.
[0051] In another optional implementation of the embodiment of the present invention, the valid candidate location information is determined based on the distance to the adjacent candidate location information. The process of determining the valid location information includes:
[0052] Step S310: In response to receiving the candidate location information, determine that the longitude and latitude information in the current candidate location information is the first longitude and latitude information, and the longitude and latitude information in the previously determined valid location information is the second longitude and latitude information.
[0053] Specifically, when receiving the candidate location information, the server obtains the latitude and longitude information in the currently received candidate location information as the first latitude and longitude information, and the latitude and longitude information in the previously determined valid location information as the second latitude and longitude information. The previously determined valid location information is the valid location information stored in the current location information cache at the closest time to the current time, that is, the valid location information stored in the location information cache at the latest.
[0054] Step S320: determine the driving distance according to the first longitude and latitude information and the second longitude and latitude information.
[0055] Specifically, the driving distance between the location of the driving terminal when the first longitude and latitude information is obtained and the location of the driving terminal when the second longitude and latitude information is obtained is determined according to the first longitude and latitude information and the second longitude and latitude information. Optionally, the driving distance can be determined by directly calculating the Euclidean distance between the first longitude and latitude information and the second longitude and latitude information. In an optional implementation of the embodiment of the present invention, the driving distance can be determined by substituting the first longitude and latitude information and the second longitude and latitude information into the following formula:
[0056]
[0057] Among them, d is the driving distance, R is the radius of the earth, (lon1, lat1) is the first longitude and latitude information, and (lon2, lat2) is the second longitude and latitude information.
[0058] Step S330: In response to the driving distance being greater than a distance threshold, storing the candidate position information as valid position information in the position information cache area.
[0059] Specifically, when the calculated driving distance is greater than a preset distance threshold, the server determines that the candidate location information is valid and stores it in the corresponding location information cache as valid location information. When the calculated driving distance is not greater than the preset distance threshold, the server determines that the candidate location information is invalid and deletes the candidate location information. The method of filtering valid location information based on distance can filter candidate location information that is too close, so that the interval between the corresponding positions of each valid location information in the location information cache is greater than the distance threshold, thereby ensuring the calculation accuracy and reducing the amount of calculation generated during the calculation process.
[0060] Step S400: In response to satisfying the second preset condition, all valid position information in the current position information cache is retrieved to determine the driving trajectory.
[0061] Specifically, in order to reduce the amount of calculation in the process of judging the driving state, and to realize the real-time judgment of the driving state during the driving process of the driving terminal. The server sets at least one second preset condition to determine multiple driving trajectories in sequence during the driving process to judge the driving state of each driving trajectory. The second preset condition can be used to judge the turning state of the driving terminal, and to judge the driving state of the driving terminal. That is, when the server judges that the driving terminal turns, it determines the corresponding driving trajectory based on the valid position information obtained between the current turning moment and the last turning moment or the starting moment of driving. Or when the server judges that the driving terminal completes the driving process, it determines the corresponding driving trajectory based on the valid position information obtained between the completion moment and the last turning moment or the starting moment of driving. In an embodiment of the present invention, the driving trajectory is a position information sequence composed of each of the valid position information.
[0062] In an optional implementation of the embodiment of the present invention, the server determines the corresponding driving trajectory each time it determines that the driving terminal turns, and the process of determining the driving trajectory includes the following steps:
[0063] Step S410: In response to determining the candidate position information as valid position information, a first azimuth difference between the azimuth of the current valid position information and the azimuth of the valid position information determined last time is calculated.
[0064] Specifically, after the server determines that the candidate location information is valid through step S300, it may not directly store the valid location information in the corresponding location information cache area, but first determine whether the driving terminal turns according to the valid location information. Whether the driving terminal turns can be determined according to the azimuth of the valid location information. After determining the valid location information, the server obtains the valid location information determined last time in the location information cache area, that is, the valid location information last stored in the location information cache area, and calculates the difference between the azimuth of the current location information and the azimuth of the valid location information determined last time as the first azimuth difference.
[0065] Step S420, in response to the first azimuth angle difference being greater than an angle threshold, taking out all valid position information in the current position information cache area to determine the driving trajectory, and storing the current valid position information in a blank position information cache area.
[0066] Specifically, after calculating the first azimuth difference, the server compares the preset angle threshold with the first azimuth difference to determine whether the driving terminal turns. When the first azimuth difference is not greater than the angle threshold, the server determines that the driving direction of the driving terminal has not changed significantly and is in a straight driving state, and directly stores the current valid position information in the position information cache. When the first azimuth difference is greater than the angle threshold, the server determines that the driving direction of the driving terminal has changed significantly, that is, the driving terminal turns. Therefore, it is necessary to take out each valid position information in the position information cache to determine the previous straight driving trajectory of the driving terminal. In the embodiment of the present invention, taking out the valid position information in the position information cache can be understood as clearing the position information cache after taking out the valid position information, so as to store the valid position information in the next straight driving trajectory through the position information cache again. After taking out each valid position information in the position information storage area, the server stores the current valid position information as the first valid position information in the next straight driving trajectory in the blank position information cache.
[0067] Furthermore, in order to prevent misjudgment due to temporary vehicle turns, the server also pre-sets an information quantity threshold. When the number of valid location information retrieved from the location information cache by the server is greater than the information quantity threshold, the corresponding driving trajectory is determined according to each valid location information. When the retrieved valid location information is less than the information quantity threshold, the server further determines that the turning state is a misjudgment and discards the acquired valid location information. The valid location information is re-determined based on the candidate location information subsequently uploaded by the driving terminal, and stored in the location information cache to determine the next straight driving trajectory.
[0068] When the driving terminal is driving, it may occasionally encounter a situation where the entire driving path is straight without turning. To avoid the problem that the driving state cannot be determined in this situation and in the last straight path of the turning driving process, in another implementation of the embodiment of the present invention, when the server receives the driving end information, it retrieves all valid position information in the current position information buffer area to determine the driving trajectory.
[0069] The application of the embodiment of the present invention to a shared bicycle platform is used as an example for explanation. The driving terminal is a shared bicycle, and the driving end information is the vehicle locking information. After the user unlocks the shared bicycle, the riding process begins. The shared bicycle obtains candidate location information in a predetermined time sequence through a positioning device during the user's riding process and uploads it to the server. After receiving the candidate location information, the server first determines whether each candidate location information is valid, and then further determines whether the shared bicycle has turned according to the valid location information. If no turn occurs, the valid location information is stored in the location information cache area. If a turn occurs, all valid location information in the location information cache area is taken out, and then the current valid location information is stored in a blank location information cache area. The server determines the number of valid location information taken out, determines the corresponding driving trajectory when it is greater than the preset information number threshold, and discards the valid location information taken out when it is less than the preset information number threshold. At the same time, when the server receives the vehicle locking information sent by the shared bicycle, it stops receiving the candidate location information and determines that the riding process is over. The server obtains all valid location information in the current location information cache area and determines the corresponding driving trajectory.
[0070] Step S500: determining the driving azimuth corresponding to the driving trajectory according to the azimuth of each of the valid position information.
[0071] Specifically, after determining a section of the driving trajectory through step S400, the server determines the azimuth of each valid position information in the driving trajectory to further determine the driving azimuth corresponding to the driving trajectory. In an embodiment of the present invention, the driving azimuth can be determined by calculating the average azimuth of each valid position information. For example, when the driving trajectory includes five valid position information, and the azimuths of each valid position information are angle1, angle2, angle3, angle4 and angle5 respectively, the azimuth corresponding to the driving trajectory is
[0072] Step S600: Determine the road information corresponding to the driving trajectory, where the road information includes the road azimuth.
[0073] Specifically, the server may determine the corresponding road information according to the latitude and longitude coordinates of each valid position information in the driving trajectory. The road information may be stored in the road network information, and the server determines the corresponding road information in the road network information after determining the driving trajectory. The corresponding road information is the information corresponding to the road where the driving trajectory is located, including the road azimuth.
[0074] Figure 4 Schematic diagram of the driving trajectory and corresponding road of an embodiment of the present invention. Figure 4 As shown, the road 41 where the driving track 40 is located is the corresponding road. Therefore, the road information corresponding to the driving track 40 is the road information corresponding to the road 41. As shown in the figure, the road azimuth in the road information is the driving direction of the road.
[0075] Step S700: determining the driving state of the vehicle according to the driving azimuth and the road azimuth.
[0076] Specifically, in the driving trajectory determined by step S400, the driving state of the vehicle corresponding to the driving terminal can be determined according to the driving azimuth and the road azimuth. The process of determining the vehicle driving state may include the following steps:
[0077] Step S710: Calculate the absolute value of the difference between the driving azimuth and the road azimuth to determine a second azimuth difference.
[0078] Specifically, after determining the driving azimuth corresponding to the driving trajectory and the road azimuth of the road information corresponding to the driving trajectory, the server calculates the absolute value of the difference between the driving azimuth and the road azimuth to obtain a second azimuth difference. The second azimuth difference is used to characterize the difference between the driving direction of the driving trajectory and the driving direction specified by the road where the driving terminal is located. For example, when the driving azimuth is 90 degrees and the road azimuth is 200 degrees, the calculated second azimuth difference is 110 degrees.
[0079] Step S720: In response to the second azimuth angle difference being not within a preset angle range, determining that the vehicle driving state is forward driving.
[0080] Specifically, the server pre-sets an angle range in the case of reverse driving, and after calculating the second azimuth angle difference, the vehicle driving state is judged according to the relationship between the second azimuth angle difference and the angle range. Wherein, when the second azimuth angle difference is not within the preset angle range, the vehicle driving state is determined to be forward driving. Optionally, the angle range is 90 degrees to 270 degrees. For example, when the driving azimuth is 90 degrees and the road azimuth is 100 degrees, the calculated second azimuth angle difference is 10 degrees. If the second azimuth angle difference is not within the angle range, the vehicle driving state is determined to be forward driving.
[0081] Further, when the server determines that the second azimuth difference is within a preset angle range, the vehicle driving state is judged to be reverse driving. For example, when the driving azimuth is 90 degrees and the road azimuth is 200 degrees, the calculated second azimuth difference is 110 degrees. If the second azimuth difference is within the angle range, the vehicle driving state is judged to be reverse driving.
[0082] In an embodiment of the present invention, when the server determines that the vehicle driving state of the driving terminal is reverse driving, it generates and sends a reminder of illegal driving. Optionally, the reminder of illegal driving can be sent to the driving terminal, the associated user terminal of the driving terminal, or the operating terminal of the platform corresponding to the driving terminal. Take the application of the embodiment of the present invention to a shared bicycle platform as an example for explanation. The driving terminal is a shared bicycle, the associated user terminal of the driving terminal is a terminal device used by the user who uses the shared bicycle, and the operating terminal is a terminal device used by the operator of the shared bicycle platform. When the user uses the shared bicycle to drive, the server determines in real time whether the user has reverse driving, and sends the reminder of illegal driving to the shared bicycle or the user terminal of the user driving the shared bicycle when reverse driving occurs, so as to correct the illegal driving behavior in time. At the same time, the server can also obtain the user information of the illegal driving user and send the reminder of illegal driving to the operating terminal. The illegal driving behavior is recorded in the corresponding user information based on the reminder of illegal driving by the operating terminal.
[0083] The driving state detection method of the embodiment of the present invention sets a position information cache area, and stores the valid position information uploaded during the vehicle driving in the position information cache area in order. When the vehicle turns or completes the driving process, the valid position information in the current position information cache area is taken out to determine the previous driving trajectory to judge the driving state. The driving state judgment of the vehicle driving path is realized, the timeliness of the vehicle driving state judgment process is enhanced, and the complexity and difficulty of the judgment process are reduced.
[0084] Figure 5 FIG. 1 is a schematic diagram of a driving state judgment process of an optional implementation of an embodiment of the present invention, which is used to characterize the process of judging the driving state when the driving terminal turns. Figure 5 As shown, the driving state judgment process includes the following steps:
[0085] S50: The server receives the candidate location information uploaded in sequence by the driving terminal.
[0086] S51. The server determines whether the received candidate location information is valid.
[0087] S52: When the judgment result is invalid, delete the candidate position information.
[0088] S53: When the judgment result is valid, further judging whether the driving terminal turns according to the valid candidate position information.
[0089] S54, when it is determined that the driving terminal turns, all information in the current position information buffer area is retrieved, and the position information buffer area is cleared, and then the current valid position information is stored in the position buffer area.
[0090] S55. When it is determined that the driving terminal has not turned, the valid position information is stored in a position information cache area.
[0091] S56. The server determines the corresponding driving track according to the retrieved valid position information.
[0092] S57: After determining the driving trajectory, the server further determines the corresponding vehicle driving state according to the driving trajectory.
[0093] The driving state detection method retrieves the valid position information in the current position information buffer area when the vehicle turns to determine the previous driving trajectory and judge the driving state. At the same time, the valid position information corresponding to the next driving trajectory is stored in the cleared position information buffer area for judging the driving state of the next driving trajectory. The driving state judgment of the vehicle driving path is realized in sections, and the timeliness of the vehicle driving state judgment process is enhanced.
[0094] Figure 6 FIG. 1 is a schematic diagram of a driving state judgment process of another optional implementation of an embodiment of the present invention, which is used to illustrate a method for judging a driving state when a driving terminal completes a driving process. Figure 6 As shown, the driving state judgment process includes the following steps:
[0095] S60: The server receives the candidate location information uploaded in sequence by the driving terminal.
[0096] S61. The server determines whether the received candidate location information is valid.
[0097] S62: When the judgment result is invalid, delete the candidate location information.
[0098] S63: When the result of the judgment is valid, the valid location information is stored in a location information cache area.
[0099] S64: The server receives the driving end information sent by the driving terminal.
[0100] S65. The server determines that the driving terminal has completed the driving process according to the driving end information, retrieves all information from the current location information cache, and clears the location information cache.
[0101] S66. The server determines the corresponding driving track according to the retrieved valid position information.
[0102] S67. After determining the driving trajectory, the server further determines the corresponding vehicle driving state according to the driving trajectory.
[0103] The driving state detection method retrieves the valid position information in the current position information buffer area when the vehicle completes the driving process to determine the previous driving trajectory and judge the driving state. When judging the driving state of the vehicle's driving path in sections, the driving state of the last section of the vehicle's driving trajectory is judged to ensure that the driving state of the entire driving path of the vehicle is completely determined.
[0104] Figure 7 Schematic diagram of a driving state judgment device according to an embodiment of the present invention. Figure 7 As shown, the driving state judgment device includes a cache area determination module 70, an information acquisition module 71, an information screening module 72, a trajectory determination module 73, a first azimuth angle determination module 74, a second azimuth angle determination module 75 and a driving state judgment module 76.
[0105] Specifically, the cache area determination module 70 is used to determine the location information cache area;
[0106] The information acquisition module 71 is used to receive multiple candidate position information including azimuths uploaded in sequence, and the candidate position information is used to characterize the vehicle position attribute. The information screening module 72 is used to store the candidate position information as valid position information in the position information cache in response to the candidate position information satisfying the first preset condition. The trajectory determination module 73 is used to retrieve all valid position information in the current position information cache in response to satisfying the second preset condition to determine the driving trajectory. The first azimuth determination module 74 is used to determine the driving azimuth corresponding to the driving trajectory according to the azimuth of each of the valid position information. The second azimuth determination module 75 is used to determine the road information corresponding to the driving trajectory, and the road information includes the road azimuth. The driving state judgment module 76 is used to determine the vehicle driving state according to the driving azimuth and the road azimuth.
[0107] Further, the candidate position information includes vehicle speed;
[0108] The information screening module is specifically:
[0109] The information screening unit is used for storing the candidate position information as valid position information in the position information buffer area in response to the vehicle speed being valid in the received candidate position information.
[0110] Furthermore, the candidate location information includes longitude and latitude information;
[0111] The information screening module comprises:
[0112] a longitude and latitude determination unit, configured to, in response to receiving the candidate position information, determine that the longitude and latitude information in the current candidate position information is the first longitude and latitude information, and the longitude and latitude information in the previously determined valid position information is the second longitude and latitude information;
[0113] a distance calculation unit, configured to determine a travel distance according to the first longitude and latitude information and the second longitude and latitude information;
[0114] The information storage unit is used for storing the candidate position information as valid position information in the position information cache area in response to the driving distance being greater than a distance threshold.
[0115] Furthermore, the trajectory determination module includes:
[0116] A first difference calculation unit, configured to calculate a first azimuth difference between the azimuth of the current valid position information and the azimuth of the valid position information determined last time in response to determining the candidate position information as the valid position information;
[0117] The first trajectory determination unit is used to retrieve all valid position information in the current position information cache area in response to the first azimuth difference being greater than an angle threshold to determine the driving trajectory, and store the current valid position information in a blank position information cache area.
[0118] Furthermore, the trajectory determination module is specifically:
[0119] The second trajectory determination unit is used to retrieve all valid position information in the current position information buffer area in response to receiving the driving end information, so as to determine the driving trajectory.
[0120] Furthermore, the first azimuth angle determination module is specifically:
[0121] The azimuth angle calculation unit is used to calculate the average azimuth angle of each valid position information to determine the driving azimuth angle corresponding to the driving trajectory.
[0122] Furthermore, the driving state judgment module includes:
[0123] A second difference calculation unit, used for calculating the absolute value of the difference between the driving azimuth and the road azimuth to determine a second azimuth difference;
[0124] The first driving state judgment unit is used to determine that the vehicle driving state is forward driving in response to the second azimuth angle difference being not within a preset angle range.
[0125] Furthermore, the driving state judgment module further includes:
[0126] The second driving state judgment unit is used to determine that the vehicle driving state is reverse driving in response to the second azimuth angle difference being within a preset angle range, and send a warning of illegal driving.
[0127] Furthermore, the device also includes:
[0128] The driving track filtering module is used to discard each of the retrieved valid position information in response to the number of all the retrieved valid position information being less than an information number threshold.
[0129] The driving state detection device of the embodiment of the present invention sets a position information cache area, and stores the valid position information uploaded during the vehicle driving in the position information cache area in order. When the vehicle turns or completes the driving process, the valid position information in the current position information cache area is taken out to determine the previous driving trajectory to judge the driving state. The driving state judgment of the vehicle driving path segment is realized, the timeliness of the vehicle driving state judgment process is enhanced, and the complexity and difficulty of the judgment process are reduced.
[0130] Figure 8 FIG. 1 is a schematic diagram of an electronic device according to an embodiment of the present invention. Figure 8 As shown, Figure 8 The electronic device shown is a general address query device, which includes a general computer hardware structure, which at least includes a processor 80 and a memory 81. The processor 80 and the memory 81 are connected via a bus 82. The memory 81 is suitable for storing instructions or programs executable by the processor 80. The processor 80 can be an independent microprocessor or a collection of one or more microprocessors. Thus, the processor 80 executes the instructions stored in the memory 81, thereby executing the method flow of the embodiment of the present invention as described above to realize the processing of data and the control of other devices. The bus 82 connects the above-mentioned multiple components together, and at the same time connects the above-mentioned components to the display controller 83 and the display device and the input / output (I / O) device 84. The input / output (I / O) device 84 can be a mouse, a keyboard, a modem, a network interface, a touch input device, a somatosensory input device, a printer, and other devices known in the art. Typically, the input / output device 84 is connected to the system via an input / output (I / O) controller 85.
[0131] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, devices (equipment) or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment or an embodiment combining software and hardware. Moreover, the present application may adopt a computer program product implemented on one or more computer-readable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0132] The present application is described with reference to flowcharts of methods, apparatuses (devices) and computer program products according to embodiments of the present application. It should be understood that each process in the flowchart can be implemented by computer program instructions.
[0133] These computer program instructions may be stored in a computer readable memory capable of directing a computer or other programmable vehicle dispatching device to operate in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture including an instruction device that implements the process Figure 1 A function specified in a process or multiple processes.
[0134] These computer program instructions may also be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable vehicle dispatching device to produce a machine, so that the instructions executed by the processor of the computer or other programmable vehicle dispatching device produce instructions for implementing the process Figure 1 A device that specifies functions in a process or multiple processes.
[0135] Another embodiment of the present invention relates to a non-volatile storage medium for storing a computer-readable program, wherein the computer-readable program is used for a computer to execute part or all of the above method embodiments.
[0136] That is, those skilled in the art can understand that all or part of the steps in the above-mentioned embodiment method can be completed by specifying relevant hardware through a program, and the program is stored in a storage medium, including several instructions for a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.
[0137] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A driving state judgment method, It is characterized in that The method comprises: Determine the location information cache area; Receiving a plurality of candidate position information including azimuth angles uploaded in sequence, wherein the candidate position information is used to characterize a vehicle position attribute; In response to the candidate location information satisfying a first preset condition, storing the candidate location information as valid location information in the location information cache area; In response to satisfying a second preset condition, taking out all valid position information in the current position information cache area to determine the driving trajectory, wherein the second preset condition is used to determine the turning state of the driving terminal and the driving completion state of the driving terminal; Determine the driving azimuth corresponding to the driving trajectory according to the azimuth of each valid position information; Determining road information corresponding to the driving trajectory, the road information including a road azimuth; The driving state of the vehicle is determined according to the driving azimuth and the road azimuth.
2. The method according to claim 1, It is characterized in that The candidate position information includes vehicle speed; In response to the candidate location information satisfying the first preset condition, storing the candidate location information as valid location information in the location information cache area specifically comprises: In response to the vehicle speed being valid in the received candidate position information, the candidate position information is stored in the position information buffer as valid position information.
3. The method according to claim 1, It is characterized in that The candidate location information includes longitude and latitude information; In response to the candidate location information satisfying the first preset condition, storing the candidate location information as valid location information in the location information cache area includes: In response to receiving the candidate location information, determining that the longitude and latitude information in the current candidate location information is the first longitude and latitude information, and the longitude and latitude information in the previously determined valid location information is the second longitude and latitude information; Determine the driving distance according to the first longitude and latitude information and the second longitude and latitude information; In response to the driving distance being greater than a distance threshold, the candidate position information is stored in the position information cache as valid position information.
4. The method according to claim 1, It is characterized in that In response to satisfying the second preset condition, retrieving all valid position information in the current position information cache area to determine the driving trajectory includes: In response to determining the candidate position information as valid position information, calculating a first azimuth difference between the azimuth of the current valid position information and the azimuth of the valid position information determined last time; In response to the first azimuth angle difference being greater than an angle threshold, all valid position information in the current position information cache is retrieved to determine a driving trajectory, and the current valid position information is stored in a blank position information cache.
5. The method according to claim 1, It is characterized in that In response to satisfying the second preset condition, all valid position information in the current position information buffer area is retrieved to determine the driving trajectory: In response to receiving the driving end information, all valid position information in the current position information buffer area is retrieved to determine the driving trajectory.
6. The method according to claim 1, It is characterized in that The specific method of determining the driving azimuth corresponding to the driving trajectory according to the azimuth in each of the valid position information is as follows: The average azimuth angle of each valid position information is calculated to determine the driving azimuth angle corresponding to the driving trajectory.
7. The method according to claim 1, It is characterized in that Determining the vehicle driving state according to the driving azimuth and the road azimuth comprises: Calculating the absolute value of the difference between the driving azimuth and the road azimuth to determine a second azimuth difference; In response to the second azimuth angle difference being not within a preset angle range, it is determined that the vehicle driving state is forward driving.
8. The method according to claim 7, It is characterized in that Determining the vehicle driving state according to the driving azimuth and the road azimuth also includes: In response to the second azimuth angle difference being within a preset angle range, it is determined that the vehicle is driving in the opposite direction, and a driving violation reminder is sent.
9. The method according to claim 1, It is characterized in that The method further comprises: In response to the number of all the retrieved valid position information being less than the information number threshold, each retrieved valid position information is discarded.
10. A driving state judgment device, It is characterized in that The device comprises: A cache area determination module, used to determine a location information cache area; An information acquisition module, used to receive a plurality of candidate position information including azimuth angles uploaded in sequence, wherein the candidate position information is used to characterize a vehicle position attribute; an information screening module, configured to store the candidate location information as valid location information in the location information cache area in response to the candidate location information satisfying a first preset condition; a trajectory determination module, configured to retrieve all valid position information in the current position information cache area in response to satisfying a second preset condition to determine the driving trajectory, wherein the second preset condition is used to determine a turning state of the driving terminal and a driving completion state of the driving terminal; A first azimuth angle determination module, used to determine the driving azimuth angle corresponding to the driving trajectory according to the azimuth angle of each valid position information; A second azimuth angle determination module, used to determine road information corresponding to the driving trajectory, wherein the road information includes a road azimuth angle; The driving state judgment module is used to determine the driving state of the vehicle according to the driving azimuth and the road azimuth.
11. The device according to claim 10, It is characterized in that The candidate position information includes vehicle speed; The information screening module is specifically: The information screening unit is used for storing the candidate position information as valid position information in the position information buffer area in response to the vehicle speed being valid in the received candidate position information.
12. The device according to claim 10, It is characterized in that The candidate location information includes longitude and latitude information; The information screening module comprises: a longitude and latitude determination unit, configured to, in response to receiving the candidate position information, determine that the longitude and latitude information in the current candidate position information is the first longitude and latitude information, and the longitude and latitude information in the previously determined valid position information is the second longitude and latitude information; a distance calculation unit, configured to determine a travel distance according to the first longitude and latitude information and the second longitude and latitude information; The information storage unit is used for storing the candidate position information as valid position information in the position information cache area in response to the driving distance being greater than a distance threshold.
13. The device according to claim 10, It is characterized in that The trajectory determination module comprises: A first difference calculation unit, configured to calculate a first azimuth difference between the azimuth of the current valid position information and the azimuth of the valid position information determined last time in response to determining the candidate position information as the valid position information; The first trajectory determination unit is used to retrieve all valid position information in the current position information cache area in response to the first azimuth difference being greater than an angle threshold to determine the driving trajectory, and store the current valid position information in a blank position information cache area.
14. The device according to claim 10, It is characterized in that The trajectory determination module is specifically: The second trajectory determination unit is used to retrieve all valid position information in the current position information buffer area in response to receiving the driving end information, so as to determine the driving trajectory.
15. The device according to claim 10, It is characterized in that The first azimuth angle determination module is specifically: The azimuth angle calculation unit is used to calculate the average azimuth angle of each valid position information to determine the driving azimuth angle corresponding to the driving trajectory.
16. The device according to claim 10, It is characterized in that The driving state judgment module comprises: A second difference calculation unit, used for calculating the absolute value of the difference between the driving azimuth and the road azimuth to determine a second azimuth difference; The first driving state judgment unit is used to determine that the vehicle driving state is forward driving in response to the second azimuth angle difference being not within a preset angle range.
17. The device according to claim 16, It is characterized in that The driving state judgment module also includes: The second driving state judgment unit is used to determine that the vehicle driving state is reverse driving in response to the second azimuth angle difference being within a preset angle range, and send a warning of illegal driving.
18. The device according to claim 10, It is characterized in that The device also includes: The driving track filtering module is used to discard each of the retrieved valid position information in response to the number of all the retrieved valid position information being less than an information number threshold.
19. A computer readable storage medium for storing computer program instructions, It is characterized in that The computer program instructions, when executed by a processor, implement the method according to any one of claims 1 to 9.
20. An electronic device comprising a memory and a processor, It is characterized in that The memory is used to store one or more computer program instructions, wherein the one or more computer program instructions are executed by the processor to implement the method according to any one of claims 1 to 9.
Citation Information
Patent Citations
Driving state detection method and device, readable storage medium and electronic equipment
CN110473405A
