Vehicle reverse driving prompting method and device, electronic equipment and storage medium
Patent Information
- Application Number
- CN202111505860.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-10
- Publication Date
- 2026-09-04
- Estimated Expiration
- 2041-12-10
AI Technical Summary
[0003]本发明要解决的技术问题是为了克服现有技术中司机容易驶入逆行车道的缺陷,提供一种车辆逆向行驶提示的生成方法及系统
[0017]本发明的积极进步效果在于,通过提供一种车辆逆向行驶的提示方法及装置、电子设备及存储介质,通过对前方行车图像的检测,基于方向盘转角数据进行判断,并且当发现车辆会驶入逆行车道时及时地作出提示,从而有效地避免了由于逆行而导致的交通意外;并且基于前方行车图像进行的检测和判断能够无需通过车载导航,而是基于现实场景进行及时准确的逆行判断。
Smart Images

Figure CN116252809B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of vehicle driver assistance technology, specifically to a method and device for alerting a vehicle traveling in the wrong direction, an electronic device, and a storage medium. Background Technology
[0002] Inexperienced drivers, drivers who are fatigued or lack concentration, or drivers who are disoriented in unfamiliar areas are all likely to drive their vehicles into the wrong lane, thereby violating traffic regulations and even causing serious traffic accidents. Summary of the Invention
[0003] The technical problem to be solved by the present invention is to overcome the defect in the prior art that drivers are prone to driving into the wrong lane, and to provide a method and system for generating vehicle wrong-way driving prompts.
[0004] The present invention solves the above-mentioned technical problems through the following technical solution:
[0005] This invention provides a method for alerting a vehicle traveling in the wrong direction, comprising the following steps:
[0006] Detect whether the image of the vehicle ahead includes information about the oncoming lane;
[0007] If included, the system determines whether the vehicle will enter the oncoming lane based on the steering wheel angle data.
[0008] If so, a prompt message will be generated.
[0009] The present invention also provides a vehicle reverse driving warning device, the warning device including a data acquisition unit, one or more processing units and a storage unit, wherein the one or more processing units are respectively communicatively connected to the data acquisition unit and the storage unit;
[0010] The acquisition unit is used to acquire the steering wheel angle data of the vehicle;
[0011] The storage unit is configured to store instructions, which, when executed by the one or more processing units, cause the one or more processing units to perform steps, the steps including:
[0012] Detect whether the image of the vehicle ahead includes information about the oncoming lane;
[0013] If included, the system determines whether the vehicle will enter the oncoming lane based on the steering wheel angle data.
[0014] If so, a prompt message will be generated.
[0015] The present invention also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the above-described method for prompting that a vehicle is traveling in the wrong direction.
[0016] The present invention also provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the above-described method for prompting that a vehicle is traveling in the wrong direction.
[0017] The positive and progressive effects of this invention are that by providing a method, device, electronic device, and storage medium for alerting vehicles driving in the wrong direction, it detects the image of the vehicle ahead, makes a judgment based on steering wheel angle data, and promptly alerts the user when it is detected that the vehicle will enter the wrong-way lane, thereby effectively avoiding traffic accidents caused by driving in the wrong direction; and the detection and judgment based on the image of the vehicle ahead can make timely and accurate judgments of driving in the wrong direction based on the real scene without relying on in-vehicle navigation. Attached Figure Description
[0018] Figure 1 This is a flowchart of the vehicle reverse driving prompting method according to Embodiment 1 of the present invention.
[0019] Figure 2 This is a schematic diagram illustrating an application scenario of the vehicle reverse driving notification method of Embodiment 1 of the present invention.
[0020] Figure 3 This is a schematic diagram illustrating an application scenario of the vehicle reverse driving notification method of Embodiment 1 of the present invention.
[0021] Figure 4 This is a schematic diagram illustrating an application scenario of the vehicle reverse driving notification method of Embodiment 1 of the present invention.
[0022] Figure 5 This is a schematic diagram of the vehicle reverse driving warning device according to Embodiment 2 of the present invention.
[0023] Figure 6 This is a structural block diagram of the electronic device according to Embodiment 3 of the present invention. Detailed Implementation
[0024] The present invention will be further illustrated by way of embodiments below, but the present invention is not limited to the scope of the embodiments described herein.
[0025] Example 1
[0026] See Figure 1 This embodiment specifically provides a method for alerting a vehicle traveling in the wrong direction, including the following steps:
[0027] S1. Detect whether the image of the vehicle ahead contains information about the oncoming lane; if it does, proceed to step S2.
[0028] S2. Determine whether the vehicle will enter the oncoming lane based on the steering wheel angle data; if so, proceed to step S3.
[0029] S3. Generate a prompt message.
[0030] Step S1 detects the image of the vehicle ahead, for example, by obtaining video images of the vehicle ahead during driving, such as those captured by a dashcam or a panoramic camera. In this embodiment, the inverted lane is one where the vehicle, following its current driving trend, would deviate from the lane's designated direction of travel; therefore, the lane is considered an inverted lane for the vehicle. Inverted lane information includes, but is not limited to, information that can indicate the existence of an inverted lane or specifically indicate an inverted lane, such as road signs or directional signs. Step S2, when inverted lane information is detected in the image of the vehicle ahead, determines whether the vehicle will enter the inverted lane based on steering wheel angle data; that is, it determines whether the vehicle will enter the inverted lane by estimating the vehicle's steering trend. Step S3 generates a prompt, which may include, but is not limited to, prompting the driver by displaying a warning image on the vehicle's infotainment screen, playing a warning sound through the speaker, raising the seat back angle to alert the driver to the road ahead, automatically activating the vehicle's hazard lights, or automatically sounding the horn to alert surrounding vehicles.
[0031] In a preferred embodiment, step S2 includes:
[0032] S21. If the steering wheel angle exceeds the first preset angle, it is determined that the vehicle will enter the oncoming lane; if it does not exceed the preset angle, it is determined that the vehicle will not enter the oncoming lane.
[0033] In this embodiment, the steering wheel angle is determined; if it exceeds a first preset angle, the vehicle is determined to enter the oncoming lane; otherwise, it will not enter the oncoming lane. See also Figure 2 In most T-junctions or crossroads, the opposite lane for a vehicle turning left is the left-hand side of the current direction of travel. Therefore, entering the opposite lane often involves a noticeable left-turn tendency. This embodiment sets a first preset angle for this application scenario. The turning tendency of the vehicle is measured by the steering wheel angle. When the angle exceeds the first preset angle, the turning tendency is considered to match the opposite lane, thus indicating that the vehicle will enter the opposite lane; conversely, the angle is not exceeded. This implementation method, by setting a first preset angle to judge the steering wheel angle, helps to quickly determine whether a vehicle will enter the opposite lane in scenarios such as perpendicular intersections, thereby generating timely and accurate corresponding prompts.
[0034] In a preferred embodiment, step S2 includes:
[0035] S22. Determine the direction of wheel deflection based on the steering wheel angle data;
[0036] S23. Obtain the entrance direction of the oncoming lane;
[0037] S24. If the angle between the vehicle's turning direction and the entrance direction is less than a preset angle threshold, it is determined that the vehicle will enter the oncoming lane.
[0038] In this embodiment, step S22 acquires the vehicle's deflection direction as a basis for judging the vehicle's forward trend. Although the steering wheel and wheel angles are usually in a dynamic adjustment and restoration process during the process of a vehicle moving from the current lane to another lane, it can be considered that the steering wheel angle data at a certain moment, and even its corresponding vehicle deflection direction, can be used to characterize the driver's expected steering. The angle between this angle and the entrance direction of the oncoming lane acquired in step S23, and a preset angle threshold, can be compared to determine whether the vehicle will enter the oncoming lane. See also Figure 3 For example, if the vehicle's wheels deflect 40° to the left of the front, such as... Figure 3 The α angle shown; the entrance direction of a one-way lane, i.e., a lane for oncoming traffic, is 35° to the left of the front, as shown. Figure 3 The β angle shown indicates that the angle between the wheel steering direction and the entrance direction of the oncoming lane is 5°. Assuming a preset angle threshold of 10°, it is considered that the vehicle will enter the oncoming lane at this point. This implementation method compares the angle between the wheel steering direction and the entrance of the oncoming lane with a preset angle threshold, which can effectively detect the possibility of a vehicle entering the oncoming lane in some irregular road conditions, thereby helping to provide timely warnings and prevent oncoming traffic from occurring.
[0039] In a preferred embodiment, step S22 includes:
[0040] S221. Obtain the vehicle's steering ratio parameters;
[0041] S222. Determine the wheel deflection direction based on the steering ratio parameters and steering wheel angle data.
[0042] In step S211, the vehicle's steering ratio parameter, also known as the steering transmission ratio, refers to the ratio of the steering angle of the steering wheel to the steering angle of the wheels. For example, if the steering wheel rotates 60° and drives the wheels to rotate 30°, the steering ratio parameter is 2:1. A larger steering ratio means a greater range of steering wheel rotation, while the force required to rotate the steering wheel is generally smaller; conversely, a smaller steering ratio means a smaller range of steering wheel rotation, resulting in a faster steering response. This embodiment uses the steering ratio parameter to determine the wheel deflection direction, which helps to relatively accurately measure the wheel deflection direction, thereby enabling a more accurate and reasonable comparison with oncoming traffic conditions and improving the accuracy of oncoming traffic detection.
[0043] As an optional implementation, the information of the wrong-way lane includes a wrong-way road sign; step S23 includes: in the forward driving image, determining the road entrance where the wrong-way road sign is located as the entrance direction of the wrong-way lane.
[0044] In this embodiment, the road signs for driving against traffic include, but are not limited to, arrow signs and text signs on the road surface; for example, the direction of the arrow or the orientation of the text is used to determine whether it is information for driving against traffic; step S23 can identify the road surface where the road sign is located as driving against traffic by recognizing the road sign, and then, combined with image detection and other processing, the road entrance of the driving against traffic can be determined.
[0045] As another optional implementation, the reverse lane information includes a reverse lane sign; step S23 includes: in the forward driving image, determining the road entrance pointed to by the reverse lane sign as the entrance direction of the reverse lane.
[0046] In this embodiment, the wrong-way traffic signs include, but are not limited to, pole-mounted signs and suspended signs; for example, some wrong-way traffic warning signs, tidal flow reversible lane signs, and one-way no-entry signs, etc., and the road indicated by the directional symbols on the signs is usually the wrong-way lane. In this embodiment, based on the inspection of the image of the traffic ahead, the road entrance of the wrong-way traffic sign is determined to be the wrong-way lane, and the entrance of the wrong-way lane can also be further determined through image detection and other processing.
[0047] In a preferred embodiment, step S2 includes:
[0048] S25. Based on the steering wheel angle data, determine the target area that the vehicle is about to enter;
[0049] S26. Obtain trajectory road network data within the target area;
[0050] S27. Determine whether a vehicle will enter the oncoming lane based on the forward direction of the trajectory network data.
[0051] Trajectory network data is a type of big data based on historical trajectory accumulation. It consists of multiple trajectories passing through a certain area, forming a road network layer for that area. This data can be used to clearly and intuitively represent the historical driving conditions on road segments within that area. Each trajectory that makes up the trajectory network, as an independent linear entity, is typically composed of latitude and longitude coordinates obtained by marking points at certain time intervals. This allows for the representation of the trajectory's direction, speed, and the elapsed time at each point. Step S25 determines the target area the vehicle is about to enter based on the steering wheel angle data. The target area can include, but is not limited to, a rectangular, trapezoidal, or fan-shaped area defined with the vehicle's front as a reference. Step S27 makes a judgment based on the trajectory network data within the target area obtained in step S26, which can include, but is not limited to, judging by the direction of the trajectory network within the target area; for example... Figure 4 The target area L2 includes several trajectories within the L1 area, whose directions are opposite to the current driving direction and the driving trend represented by the current steering wheel angle data. Based on this, it can be determined that the vehicle will enter the oncoming lane. This implementation method determines the target area through steering wheel turning data and uses big data resources of trajectory road networks for oncoming traffic analysis, which can obtain a relatively accurate and objective judgment result, thereby providing timely oncoming traffic warnings.
[0052] As a preferred implementation, the vehicle reverse driving warning method of this embodiment further includes step S0: acquiring the vehicle's steering wheel angle data; if the steering wheel angle exceeds a second preset angle, then the above-mentioned step S1 is executed; since reverse driving is unlikely to occur in most scenarios when the vehicle is driving straight or nearly straight, this embodiment first detects the vehicle's steering wheel angle data, and only when it exceeds the second preset angle, indicating that the vehicle will have a certain degree of turning tendency, does it further perform the detection of the driving image ahead, thereby effectively improving detection efficiency and saving computing resources used for detection in most application scenarios.
[0053] As a preferred implementation, the prompting method of this embodiment further includes: when the judgment result of step S2 is yes, step S4 is executed;
[0054] S4. Generate control commands, which are used to control the vehicle to stop changing direction and / or control the vehicle to decelerate.
[0055] This implementation generates control commands for the vehicle when it detects that the vehicle is about to travel in the wrong direction. These commands may include, for example, stopping the vehicle from changing direction or slowing it down. Methods include, but are not limited to, controlling the vehicle's automatic braking, locking the steering wheel, or reducing the steering ratio to increase steering damping. In practical applications, these control commands can be further combined with information from the vehicle's surrounding radar and rear-view images to assess the surrounding road conditions and implement appropriate controls to avoid rear-end collisions.
[0056] The vehicle reverse driving warning method in this embodiment detects the driving image ahead, makes a judgment based on steering wheel angle data, and promptly issues a warning when it detects that a vehicle is about to enter the reverse driving lane, thereby effectively avoiding traffic accidents caused by driving in the wrong direction; and the detection and judgment based on the driving image ahead can make timely and accurate reverse driving judgments based on the real scene without the need for in-vehicle navigation.
[0057] Example 2
[0058] See Figure 5This embodiment specifically provides a vehicle reverse driving warning device. The warning device includes a data acquisition unit 50, one or more processing units 51 and a storage unit 52. The one or more processing units 51 are respectively communicatively connected to the data acquisition unit 50 and the storage unit 52.
[0059] The acquisition unit 50 is used to acquire the steering wheel angle data of the vehicle;
[0060] Storage unit 52 is configured to store instructions, which, when executed by one or more processing units 51, cause the one or more processing units 51 to perform steps, including:
[0061] S1. Detect whether the image of the vehicle ahead contains information about the oncoming lane. If it does, proceed to step S2.
[0062] S2. Determine whether the vehicle will enter the oncoming lane based on the steering wheel angle data; if so, proceed to step S3.
[0063] S3. Generate a prompt message.
[0064] Step S1 detects the image of the vehicle ahead, for example, by obtaining video images of the vehicle ahead during driving, such as those captured by a dashcam or a panoramic camera. In this embodiment, the inverted lane is one where the vehicle, if it enters the lane according to its current driving trend, would deviate from the lane's designed driving direction; therefore, the lane is considered an inverted lane for the vehicle. Inverted lane information includes, but is not limited to, information that can indicate the existence of an inverted lane or specifically indicate an inverted lane, such as road signs or directional signs. Step S2, when the image of the vehicle ahead includes inverted lane information, determines whether the vehicle will enter the inverted lane based on steering wheel angle data; that is, it determines whether it will enter the inverted lane by estimating the vehicle's steering trend. Step S3 generates a prompt, which may include, but is not limited to, prompting the driver by displaying a warning image on the vehicle's infotainment screen, playing a warning sound through the speaker, raising the seat back angle to alert the driver to the road ahead, automatically activating the vehicle's hazard lights, or automatically sounding the horn to alert surrounding vehicles.
[0065] The vehicle reverse driving warning device in this embodiment detects the driving image ahead and makes a judgment based on the steering wheel angle data. When it detects that a vehicle is about to enter the reverse driving lane, it promptly issues a warning, thereby effectively avoiding traffic accidents caused by driving in the wrong direction. Furthermore, the detection and judgment based on the driving image ahead can make timely and accurate judgments of reverse driving based on the real scene without the need for in-vehicle navigation.
[0066] Example 3
[0067] See Figure 6As shown, this embodiment provides an electronic device 30, including a processor 31, a memory 32, and a computer program stored in the memory 32 and executable on the processor 31. When the processor 31 executes the program, it implements the vehicle reverse driving prompting method in Embodiment 1. Figure 6 The electronic device 30 shown is merely an example and should not impose any limitation on the functionality and scope of use of the embodiments of the present invention.
[0068] The electronic device 30 may be in the form of a general-purpose computing device, such as a server device. The components of the electronic device 30 may include, but are not limited to: at least one processor 31, at least one memory 32, and a bus 33 connecting different system components (including memory 32 and processor 31).
[0069] Bus 33 includes a data bus, an address bus, and a control bus.
[0070] The memory 32 may include volatile memory, such as random access memory (RAM) 321 and / or cache memory 322, and may further include read-only memory (ROM) 323.
[0071] The memory 32 may also include a program / utility 325 having a set (at least one) of program modules 324, including but not limited to: an operating system, one or more application programs, other program modules, and program data, each or some combination of these examples may include an implementation of a network environment.
[0072] The processor 31 executes various functional applications and data processing by running computer programs stored in the memory 32, such as the vehicle reverse driving prompting method in Embodiment 1 of the present invention.
[0073] Electronic device 30 can also communicate with one or more external devices 34 (e.g., keyboard, pointing device, etc.). This communication can be performed via input / output (I / O) interface 35. Furthermore, the model-generated device 30 can also communicate with one or more networks (e.g., local area network (LAN), wide area network (WAN), and / or public network, such as the Internet) via network adapter 36. Network adapter 36 communicates with other modules of the model-generated device 30 via bus 33. Other hardware and / or software modules can be used in conjunction with the model-generated device 30, including but not limited to: microcode, device drivers, redundant processors, external disk drive arrays, RAID (disk array) systems, tape drives, and data backup storage systems.
[0074] It should be noted that although several units / modules or sub-units / modules of the electronic device have been mentioned in the detailed description above, this division is merely exemplary and not mandatory. In fact, according to embodiments of the present invention, the features and functions of two or more units / modules described above can be embodied in one unit / module. Conversely, the features and functions of one unit / module described above can be further divided and embodied by multiple units / modules.
[0075] Example 4
[0076] This embodiment provides a computer-readable storage medium storing a computer program thereon, which, when executed by a processor, implements the vehicle reverse driving prompting method in Embodiment 1.
[0077] The readable storage medium may be more specifically adopted, including but not limited to: portable disk, hard disk, random access memory, read-only memory, erasable programmable read-only memory, optical storage device, magnetic storage device, or any suitable combination thereof.
[0078] In a possible implementation, the present invention can also be implemented as a program product comprising program code, which, when the program product is run on a terminal device, causes the terminal device to execute the method for prompting that the vehicle is traveling in reverse as described in Embodiment 1.
[0079] The program code for executing the present invention can be written in any combination of one or more programming languages. The program code can be executed entirely on the user device, partially on the user device, as a standalone software package, partially on the user device and partially on a remote device, or entirely on a remote device.
[0080] While specific embodiments of the present invention have been described above, those skilled in the art should understand that these are merely illustrative examples, and the scope of protection of the present invention is defined by the appended claims. Those skilled in the art can make various changes or modifications to these embodiments without departing from the principles and essence of the present invention, but all such changes and modifications fall within the scope of protection of the present invention.
Claims
1. A method for indicating that a vehicle is traveling in the wrong direction, characterized in that, Includes the following steps: Detect whether the image of the vehicle ahead includes information about the oncoming lane, wherein the information about the oncoming lane includes information that can be used to indicate the existence of the oncoming lane or specifically indicate the oncoming lane; If included, the system determines whether the vehicle will enter the oncoming lane based on the steering wheel angle data. If so, generate a prompt message; The step of determining whether the vehicle will enter the oncoming lane based on steering wheel angle data includes: Based on the steering wheel angle data, determine the direction of wheel deflection of the vehicle; Obtain the entrance direction of the reverse lane; If the angle between the vehicle's turning direction and the entrance direction is less than a preset angle threshold, it is determined that the vehicle will enter the oncoming lane.
2. The method for indicating reverse vehicle driving as described in claim 1, wherein the step of determining the wheel deflection direction of the vehicle based on the steering wheel angle data includes: Obtain the steering ratio parameters of the vehicle; The direction of wheel deflection is determined based on the steering ratio parameter and the steering wheel angle data.
3. The method for alerting a vehicle to travel in the wrong direction as described in claim 1, characterized in that, The information about the wrong-way lane includes wrong-way road signs; the steps for obtaining the entrance direction of the wrong-way lane include: In the image of the road ahead, the road entrance where the wrong-way road sign is located is determined as the entrance direction of the wrong-way lane.
4. The method for alerting a vehicle to travel in the wrong direction as described in claim 1, characterized in that, The information about the wrong-way lane includes a wrong-way sign; the steps for obtaining the entrance direction of the wrong-way lane include: In the image of the road ahead, the road entrance pointed to by the wrong-way sign is determined as the entrance direction of the wrong-way lane.
5. The method for alerting a vehicle to drive in the wrong direction as described in claim 1, wherein the step of determining whether the vehicle will enter the oncoming lane based on steering wheel angle data includes: Based on the steering wheel angle data, the target area that the vehicle is about to enter is determined; Obtain trajectory road network data within the target area; The direction of travel of the vehicle is determined based on the trajectory network data to determine whether the vehicle will enter the oncoming lane.
6. The method for alerting a vehicle to travel in the wrong direction as described in claim 1, characterized in that, The prompting method includes: Obtain the steering wheel angle data of the vehicle; If the steering wheel angle exceeds the second preset angle, then the step of detecting whether the driving image ahead includes information about the oncoming lane is executed.
7. The method for alerting a vehicle to drive in the wrong direction as described in claim 1, further comprising, after the step of determining whether the vehicle will enter the wrong lane based on steering wheel angle data: If so, a control command is generated, which is used to control the vehicle to stop changing direction and / or control the vehicle to decelerate.
8. A vehicle reverse-traffic warning device, characterized in that, The prompting device includes a data acquisition unit, one or more processing units, and a storage unit, wherein the one or more processing units are communicatively connected to the data acquisition unit and the storage unit, respectively. The acquisition unit is used to acquire the steering wheel angle data of the vehicle; The storage unit is configured to store instructions, which, when executed by the one or more processing units, cause the one or more processing units to perform steps, the steps including: Detect whether the image of the vehicle ahead includes information about the oncoming lane, wherein the information about the oncoming lane includes information that can be used to indicate the existence of the oncoming lane or specifically indicate the oncoming lane; If included, the system determines whether the vehicle will enter the oncoming lane based on the steering wheel angle data. If so, generate a prompt message; The step of determining whether the vehicle will enter the oncoming lane based on steering wheel angle data includes: Based on the steering wheel angle data, determine the direction of wheel deflection of the vehicle; Obtain the entrance direction of the reverse lane; If the angle between the vehicle's turning direction and the entrance direction is less than a preset angle threshold, it is determined that the vehicle will enter the oncoming lane.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the method for prompting that a vehicle is traveling in the wrong direction, as described in any one of claims 1-7.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the method for prompting a vehicle to travel in the wrong direction as described in any one of claims 1-7.
Citation Information
Patent Citations
Vehicle retrograde motion detection method and device,equipment and storage medium
CN111611901A
Vehicle converse driving detection method and related device
CN113345251A
Warning system for reverse run, warning method for reverse run, and warning program for reverse run
JP2019179407A