A method, device, equipment and storage medium for controlling vehicle turn signal lamp
By identifying the degree of lane congestion and changes in steering wheel angle, the turn signal is automatically turned on, which solves the risk caused by the vehicle not turning on the turn signal when changing lanes, improves the accuracy of lane change detection and reminders, and reduces the probability of accidents.
Patent Information
- Application Number
- CN202310009944.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-01-04
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2043-01-04
AI Technical Summary
The risk caused by not turning on the turn signal when the vehicle changes lanes, especially in congestion or adverse conditions, may lead to rear-end collisions, scratches and other accidents.
By identifying the congestion level of the lane in which the vehicle is located and changes in steering wheel angle, it automatically determines the driver's intention to change lanes, and automatically turns on the turn signal to alert other vehicles when the preset conditions are met.
It improves the accuracy of vehicle lane change detection and turn signal activation, reduces the risks caused by lane changes, ensures that other vehicles have sufficient reaction time, and reduces the probability of accidents such as rear-end collisions and scratches.
Smart Images

Figure CN115923649B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of vehicle control, and in particular to a control method, device, equipment and storage medium for a vehicle turn signal lamp. Background Art
[0002] When a vehicle is driving on the road, the driver will switch from one lane to another as needed. Lane changing is an operation with a high risk factor. At this time, the driver is required to turn on the turn signal in advance to warn other vehicles to remind the current vehicle to change lanes. Please pay attention to slow down and avoid.
[0003] However, some drivers do not turn on the turn signal due to poor driving habits or forgetfulness. Other vehicles may not have enough time to react to the sudden lane change of the current vehicle, resulting in risks of rear-end collisions and scratches. In particular, some drivers will force a lane change in a position where lane changing is not allowed or under conditions that are not conducive to lane changing. If the turn signal is not turned on at this time, the risk of danger will be greatly increased. Summary of the invention
[0004] The present invention provides a control method, device, equipment and storage medium for a vehicle turn signal lamp, so as to solve the problem of how to reduce the risk caused by not turning on the turn signal lamp when turning.
[0005] According to one aspect of the present invention, there is provided a method for controlling a vehicle turn signal lamp, comprising:
[0006] Identify the lane in which the vehicle is traveling on the road as the first lane;
[0007] respectively obtaining a first congestion level of the first lane and a second congestion level of the second lane, where the second lane is another lane adjacent to the first lane on the road;
[0008] Determining that a preset turning condition is satisfied, the turning condition at least including that the first congestion level is greater than the second congestion level;
[0009] In response to the steering condition, counting a first direction and a magnitude of an angle change of a steering wheel in the vehicle;
[0010] If the first direction is the same as the second direction and the amplitude is greater than or equal to a preset change threshold, a turn signal in the vehicle for indicating a turn from the first lane to the second lane is turned on, and the second direction is the direction of turning from the first lane to the second lane.
[0011] Optionally, the respectively acquiring a first congestion level of the first lane and a second congestion level of the second lane includes:
[0012] detecting the speed of the vehicle while traveling on the road;
[0013] If the speed is less than or equal to a preset vehicle speed threshold, marking the speed as a target speed;
[0014] Counting the proportion of the target speed within a preset time period;
[0015] If the proportion is greater than or equal to a preset proportion threshold, a first congestion level of the first lane and a second congestion level of the second lane are requested from the server.
[0016] Optionally, determining a preset turning condition includes:
[0017] Dividing the lane into a plurality of levels representing congestion degrees, the levels comprising a first level and a plurality of second levels, wherein the first level is higher than any of the second levels;
[0018] If the first congestion level belongs to the first level, and the second congestion level belongs to any of the second levels, it is determined that a preset turning condition is met.
[0019] Optionally, the determining of the preset turning condition further includes:
[0020] respectively collecting a first driving direction indicated by the first lane and a second driving direction indicated by the second lane;
[0021] If the first driving direction is the same as the second driving direction, then maintaining the turning condition is valid;
[0022] If the first driving direction is different from the second driving direction, it is determined that the turning condition is invalid.
[0023] Optionally, the determining of the preset turning condition further includes:
[0024] Obtaining a node in the first lane at which the first congestion level ends;
[0025] If the second lane passes through the node, the turning condition is maintained to be valid;
[0026] If the second lane deviates from the node, it is determined that the turning condition is invalid.
[0027] Optionally, in response to the steering condition, counting a first direction and a magnitude of an angle change of a steering wheel in the vehicle includes:
[0028] When the turning condition is met, recording a first angle of a steering wheel in the vehicle;
[0029] After the turning condition is met, continuously recording a second angle of a steering wheel in the vehicle;
[0030] Subtract the first angle from the second angle to obtain an angle difference;
[0031] taking the sign of the angle difference as the first direction of the angle change of the steering wheel in the vehicle;
[0032] An absolute value of the angle difference is taken as the amplitude of the angle change of the steering wheel in the vehicle.
[0033] Optionally, turning on a turn signal in the vehicle for indicating turning from the first lane to the second lane includes:
[0034] Detecting the status of all turn signals in the vehicle;
[0035] If the states of all the turn signals are off, generating prompt information for turning on the turn signal for indicating turning from the first lane to the second lane;
[0036] If a designated control enable signal is received, the turn signal for indicating a turn from the first lane to the second lane is turned on.
[0037] According to another aspect of the present invention, there is provided a control device for a vehicle turn signal lamp, comprising:
[0038] A lane recognition module, used to identify the lane in which the vehicle is traveling on the road as the first lane;
[0039] a congestion degree acquisition module, used to respectively acquire a first congestion degree of the first lane and a second congestion degree of the second lane, where the second lane is another lane adjacent to the first lane on the road;
[0040] A turning condition determination module, used to determine whether a preset turning condition is satisfied, wherein the turning condition at least includes that the first congestion level is greater than the second congestion level;
[0041] a steering wheel detection module, configured to count a first direction and a magnitude of an angle change of a steering wheel in the vehicle in response to the steering condition;
[0042] A turn signal activation module is used to activate the turn signal in the vehicle for indicating a turn from the first lane to the second lane if the first direction is the same as the second direction and the amplitude is greater than or equal to a preset change threshold, and the second direction is the direction of turning from the first lane to the second lane.
[0043] Optionally, the congestion degree acquisition module is further used for:
[0044] detecting the speed of the vehicle while traveling on the road;
[0045] If the speed is less than or equal to a preset vehicle speed threshold, marking the speed as a target speed;
[0046] Counting the proportion of the target speed within a preset time period;
[0047] If the proportion is greater than or equal to a preset proportion threshold, a first congestion level of the first lane and a second congestion level of the second lane are requested from the server.
[0048] Optionally, the turning condition determination module is further used for:
[0049] Dividing the lane into a plurality of levels representing congestion degrees, the levels comprising a first level and a plurality of second levels, wherein the first level is higher than any of the second levels;
[0050] If the first congestion level belongs to the first level, and the second congestion level belongs to any of the second levels, it is determined that a preset turning condition is met.
[0051] Optionally, the turning condition determination module is further used for:
[0052] respectively collecting a first driving direction indicated by the first lane and a second driving direction indicated by the second lane;
[0053] If the first driving direction is the same as the second driving direction, then maintaining the turning condition is valid;
[0054] If the first driving direction is different from the second driving direction, it is determined that the turning condition is invalid.
[0055] Optionally, the turning condition determination module is further used for:
[0056] Obtaining a node in the first lane at which the first congestion level ends;
[0057] If the second lane passes through the node, the turning condition is maintained to be valid;
[0058] If the second lane deviates from the node, it is determined that the turning condition is invalid.
[0059] Optionally, the steering wheel detection module is further used for:
[0060] When the turning condition is met, recording a first angle of a steering wheel in the vehicle;
[0061] After the turning condition is met, continuously recording a second angle of a steering wheel in the vehicle;
[0062] Subtract the first angle from the second angle to obtain an angle difference;
[0063] taking the sign of the angle difference as the first direction of the angle change of the steering wheel in the vehicle;
[0064] An absolute value of the angle difference is taken as the amplitude of the angle change of the steering wheel in the vehicle.
[0065] Optionally, the turn signal activation module is further used for:
[0066] Detecting the status of all turn signals in the vehicle;
[0067] If the states of all the turn signals are off, generating prompt information for turning on the turn signal for indicating turning from the first lane to the second lane;
[0068] If a designated control enable signal is received, the turn signal for indicating a turn from the first lane to the second lane is turned on.
[0069] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:
[0070] at least one processor; and
[0071] a memory communicatively connected to the at least one processor; wherein,
[0072] The memory stores a computer program that can be executed by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the vehicle turn signal control method described in any embodiment of the present invention.
[0073] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores a computer program, wherein the computer program is used to enable a processor to implement the method for controlling a vehicle turn signal lamp according to any embodiment of the present invention when executed.
[0074] In this embodiment, the lane in which the vehicle is traveling on the road is identified as the first lane; a first congestion level for the first lane and a second congestion level for the second lane are respectively obtained, where the second lane is another lane adjacent to the first lane on the road; it is determined whether a preset turning condition is satisfied, and the turning condition at least includes that the first congestion level is greater than the second congestion level; in response to the turning condition, a first direction and an amplitude of an angle change of a steering wheel in the vehicle are counted; if the first direction is the same as the second direction, and the amplitude is greater than or equal to a preset change threshold, a turn signal in the vehicle for indicating a turn from the first lane to the second lane is turned on, and the second direction is the direction of turning from the first lane to the second lane. This embodiment determines whether the driver has the motivation to control the vehicle to switch from the first lane to the second lane based on the congestion situation of the lane, and determines whether the driver has the intention to control the vehicle to switch from the first lane to the second lane based on the change in the angle of the steering wheel. The combination of the two is used as the condition for turning on the turn signal, which can improve the accuracy of detecting the vehicle's lane change, improve the accuracy of turning on the turn signal, and give reminders to other vehicles around the current vehicle, so that drivers of other vehicles have sufficient reaction time to control other vehicles to slow down and avoid, thereby reducing the risks of rear-end collisions, scratches, etc. caused by lane changing. In particular, some drivers will forcibly change lanes in positions where lane changing is not allowed or under conditions that are not conducive to lane changing. Turning on the turn signal in time to remind other vehicles around and allow other vehicles to avoid in time can greatly reduce the probability of danger.
[0075] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0076] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0077] Figure 1 is a flow chart of a method for controlling a vehicle turn signal lamp according to a first embodiment of the present invention;
[0078] Figure 2 is an architecture diagram of a vehicle provided according to Embodiment 1 of the present invention;
[0079] Figure 3 is a schematic structural diagram of a vehicle turn signal control device provided according to a second embodiment of the present invention;
[0080] Figure 4It is a structural schematic diagram of an electronic device for implementing the vehicle turn signal control method according to an embodiment of the present invention. DETAILED DESCRIPTION
[0081] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0082] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0083] Embodiment 1
[0084] Figure 1 This is a flow chart of a method for controlling a vehicle turn signal provided in the first embodiment of the present invention. This embodiment can be applied to analyzing the driver's intention to change lanes according to lane congestion and steering wheel, and timely reminding the driver to start the turn signal. The method can be executed by a control device for a vehicle turn signal. The control device for a vehicle turn signal can be implemented in the form of hardware and / or software, and the control device for a vehicle turn signal can be configured in an electronic device. Figure 1 As shown, the method includes:
[0085] Step 101: Identify the lane in which the vehicle is traveling on the road as the first lane.
[0086] The vehicle in this embodiment can support autonomous driving. The so-called autonomous driving may refer to the vehicle's ability to perceive the environment, plan paths and autonomously control the vehicle, that is, to use electronic technology to control the vehicle for human-like driving.
[0087] According to the degree of control over vehicle control tasks, autonomous driving vehicles can be divided into L0 non-automation (NoAutomotion), L1 driver assistance (Driver Assistance), L2 partial automation (Partial Automation), L3 conditional automation (Conditional Automation), L4 high automation (High Automation), and L5 full automation (Full Automation).
[0088] The autonomous driving vehicle in this embodiment may refer to a vehicle that meets any requirement of L1-L5, wherein the system performs an auxiliary function in L1-L3, and when reaching L4 or L5, the vehicle driving will be handed over to the system.
[0089] like Figure 2 As shown, vehicle 200 may include a driving control device 201, a body bus 202, an ECU (Electronic Control Unit) 203, an ECU 204, an ECU 205, a T-BOX (Telematics BOX) 206, a sensor 207, a sensor 208 and an actuator 209, an actuator 210, an actuator 211.
[0090] The driving control device (also called the vehicle brain) 201 is responsible for the overall intelligent control of the entire vehicle 200. The driving control device 201 can be a separate controller, or a device composed of other electronic devices with input / output ports and operation control functions; or a computer device installed with vehicle driving control applications. The driving control device can analyze and process the data sent from each ECU and / or each sensor received from the vehicle body bus 202, make corresponding decisions, and send the corresponding instructions to the vehicle body bus.
[0091] The body bus 202 may be a bus for connecting the driving control device 201, ECU 203, ECU 204, ECU 205, sensor 206, sensor 207, sensor 208 and other not shown devices of the vehicle 200. Since the high performance and reliability of the CAN (Controller Area Network) bus have been widely recognized, the body bus commonly used in motor vehicles is the CAN bus. Of course, it is understandable that the body bus may also be other types of buses.
[0092] The body bus 202 can send the instructions sent by the driving control device 201 to ECU 203, ECU 204, and ECU 205. ECU 203, ECU 204, and ECU 205 analyze and process the instructions and then send them to corresponding execution devices for execution.
[0093] T-BOX 206 is a part of the Internet of Vehicles system, which consists of four parts: host, T-BOX, application and server. The host is mainly used for in-car audio and video entertainment and vehicle information display; T-BOX is mainly used to communicate with the server and / or application to realize the vehicle information display and control of the application.
[0094] When the user sends a control command through the application, a monitoring request instruction will be issued to the T-BOX. After the vehicle obtains the control command, it sends a control message through the CAN bus to control the vehicle, and finally feeds back the operation results to the user's application. This function can help users remotely start the vehicle, turn on the air conditioner, adjust the seat to the appropriate position, etc.
[0095] Sensors 207 and 208 include, but are not limited to, laser radars, cameras, millimeter wave radars, position positioning systems (such as GPS (Global Positioning System), Beidou satellite positioning system, etc.), and the like.
[0096] It should be understood that Figure 2 The number of vehicles, driving control devices, body buses, ECUs, actuators, and sensors in the embodiment is merely illustrative. Any number of vehicles, driving control devices, body buses, ECUs, and sensors may be provided as required.
[0097] Generally speaking, roads of different levels will have different numbers of lanes. The higher the level of the road, the more lanes there are. When a vehicle is driving on the road, it will choose one of the lanes to drive. At this time, different sensors can be called to collect data and provide a basis for decision-making for autonomous driving. In this embodiment, the lane in which the vehicle is traveling on the road is determined based on the position data collected by the position positioning system, the image data collected by the camera, etc. For ease of distinction, this lane is recorded as the first lane.
[0098] Step 102: Obtain a first congestion level of the first lane and a second congestion level of the second lane respectively.
[0099] The degree of congestion is a factor that affects the driving experience, so the congestion of different lanes is one of the factors that drive the driver to change lanes, that is, the driver changes from a lane with higher congestion to a lane with lower congestion to obtain a better driving experience.
[0100] In this embodiment, the congestion level of the first lane may be obtained, recorded as the first congestion level, and the congestion level of the second lane may be obtained, recorded as the second congestion level.
[0101] The second lane is another lane adjacent to the first lane on the road.
[0102] In one case, if the first lane is a lane at the edge of the road, the number of the second lane is one.
[0103] If the first lane is the leftmost lane on the road, the second lane is the other lane adjacent to the right side of the first lane.
[0104] If the first lane is the rightmost lane of the road, then the second lane is the other lane adjacent to the left side of the first lane.
[0105] In another case, if there are at least three lanes in the road and the first lane is a non-edge lane in the road, the number of second lanes is two, the second lane is the other lane adjacent to the left side of the first lane, and the second lane is the other lane adjacent to the right side of the first lane.
[0106] For example, if the road has lane A, lane B, lane C, and lane D from left to right, if the first lane is lane A, the second lane is lane B; if the first lane is lane D, the second lane is lane C; if the first lane is lane B, the second lane is lane A and lane C.
[0107] In a specific implementation, the server can analyze the congestion situation of each lane by collecting image data on the road and send it to the vehicle through T-BOX. That is, the vehicle can receive the first congestion level of the first lane and the second congestion level of the second lane detected by the server through T-BOX.
[0108] Furthermore, the vehicle may detect the speed of the vehicle while traveling on the road through a position positioning system, and compare the speed with a preset vehicle speed threshold.
[0109] If the speed is less than or equal to the preset speed threshold, it means that the instantaneous speed of the vehicle is slow, and the speed can be marked as the target speed.
[0110] Since the instantaneous speed of the vehicle is accidental, the proportion of the target speed in all speeds can be counted within a preset time period, and the proportion can be compared with a preset ratio threshold.
[0111] If the proportion is greater than or equal to the preset proportion threshold, it means that the proportion of the target speed is high and the overall vehicle speed is slow. In this case, the vehicle often brakes and starts frequently, the driving experience is poor, and the driver is more likely to change lanes. In this case, the server is requested to provide the first congestion level of the first lane and the second congestion level of the second lane.
[0112] This embodiment uses the speed of the vehicle as a condition for requesting the first congestion level of the first lane and the second congestion level of the second lane from the server, which can reduce the frequency of communication with the server and reduce power consumption while ensuring safety.
[0113] Step 103: Determine whether a preset turning condition is met.
[0114] In this embodiment, a turning condition may be set in advance for the vehicle. The turning condition is set based on the driver's driving behavior and indicates the driver's motivation for controlling the vehicle to change lanes.
[0115] Among them, the turning condition at least includes that the first congestion level is greater than the second congestion level, that is, the vehicles traveling in the second lane are sparser than the vehicles traveling in the first lane, the congestion can be alleviated when the current vehicle switches from the first lane to the second lane, the driver's driving experience in the second lane is better than that in the first lane, and the driver has the motivation to control the vehicle to switch from the first lane to the second lane.
[0116] In one embodiment of the present invention, step 103 may include the following steps:
[0117] Step 1031: divide the lanes into multiple levels representing the degree of congestion.
[0118] In this embodiment, the lanes may be divided into a plurality of levels representing the degree of congestion according to certain specifications (such as the size of the traffic flow, etc.) in advance.
[0119] Exemplarily, the multiple levels include severe congestion, moderate congestion, mild congestion, basically unblocked and unblocked, wherein the congestion level represented by severe congestion is greater than the congestion level represented by moderate congestion, the congestion level represented by moderate congestion is greater than the congestion level represented by mild congestion, the congestion level represented by mild congestion is greater than the congestion level represented by basically unblocked, and the congestion level represented by basically unblocked is greater than the congestion level represented by unblocked.
[0120] For turning conditions, these levels can be divided into a first level and multiple second levels, so that the level includes a first level and multiple second levels, wherein the first level is higher than any second level, that is, the congestion level represented by the first level is greater than the congestion level represented by any second level.
[0121] Exemplarily, the first level is severe congestion, and the second level is moderate congestion, light congestion, basically unobstructed and unobstructed.
[0122] Step 1032: If the first congestion level belongs to the first level and the second congestion level belongs to any second level, it is determined that the preset turning condition is met.
[0123] If the first congestion level of the first lane belongs to the first level, and the second congestion level of the second lane belongs to any second level, it means that the congestion level of the first lane is higher, and the congestion level of the second lane is lower, and the difference between the congestion levels of the first lane and the second lane is larger. When the current vehicle switches from the first lane to the second lane, the congestion situation can be effectively alleviated, and the driver's driving experience can be effectively improved, so that the driver has sufficient motivation to leave the first lane and switch to the second lane. At this time, it can be determined that the preset turning conditions are met.
[0124] In one embodiment of the present invention, step 103 may further include the following steps:
[0125] Step 1033: respectively collect the first driving direction indicated by the first lane and the second driving direction indicated by the second lane.
[0126] Step 1034: If the first driving direction is the same as the second driving direction, the turning condition is maintained valid.
[0127] Step 1035: If the first driving direction is different from the second driving direction, it is determined that the turning condition is invalid.
[0128] In this embodiment, the indicator sign of the first lane can be identified from the image data collected by the camera through the target detection network. The indicator sign is located at the road surface, gantry, etc. of the first lane and is used to indicate the first driving direction of the first lane. The indicator sign of the second lane can be identified from the image data collected by the camera. The indicator sign is located at the road surface, gantry, etc. of the second lane and is used to indicate the second driving direction of the second lane.
[0129] In a specific implementation, the target detection network can be one-stage or two-stage.
[0130] Two-stage belongs to segment to segment, which means that the target detection operation is completed in two steps. The first step is to use various convolutional neural networks as the backbone of the target detection network to extract features from the original image data, perform coarse classification (distinguishing foreground and background) and coarse positioning (anchor) based on the features, and obtain candidate areas. The second step is to classify the candidate areas (i.e. business objects) in the classification network of the target detection network.
[0131] Exemplarily, the two-stage target detection operation may include R-CNN (Region-CNN, region-based convolutional neural network), Fast R-CNN (fast regional convolutional neural network), Faster R-CNN (faster regional convolutional neural network), R-FCN (Region-based fully convolutional network, region-based fully convolutional network), and the like.
[0132] One-stage is end-to-end, which means that the target detection operation is completed in one step. It does not search for candidate areas separately. The original image data is input into an overall network, and the generated detection results also include the location and category information of the business object.
[0133] Exemplarily, the one-stage target detection operation may include SSD (Single Shot Multibox Detector), YOLO (You Only Look Once), and the like.
[0134] Generally speaking, two-stage detection has higher accuracy but slightly slower detection speed, while one-stage detection has faster detection speed but slightly lower accuracy. Technical personnel in this field can choose one-stage or two-stage based on factors such as the resources of the self-study detection equipment and the real-time requirements of the detection. This embodiment does not impose any restrictions on this.
[0135] The first direction of travel is compared to the second direction of travel.
[0136] If the first driving direction is the same as the second driving direction, that is, the driver controls the vehicle to switch from the first lane to the second lane, and the vehicle can continue to travel along the original route, then it can be considered that maintaining the turning condition is valid.
[0137] If the first driving direction is different from the second driving direction, that is, the driver controls the vehicle to switch from the first lane to the second lane, it is not possible to continue driving along the original route. For example, the first driving direction of the first lane is forward, and the second driving direction of the second lane is right. At this time, it can be considered that the turning condition is invalid, thereby improving the accuracy of judging whether the driver has the motivation to control the vehicle to switch from the first lane to the second lane.
[0138] In one embodiment of the present invention, step 103 may further include the following steps:
[0139] Step 1036: Obtain the node at which the first congestion level in the first lane ends.
[0140] Step 1037: If the second lane passes the node, the turning condition is maintained valid.
[0141] Step 1038: If the second lane deviates from the node, it is determined that the turning condition is invalid.
[0142] In this embodiment, T-BOX can be used to request the server to traverse the first lane forward and query the node in the first lane where the congestion ends (expressed by the first congestion level), such as a toll station, a traffic light, etc. In this case, the congestion in the first lane is most likely caused by the functions of the node, such as toll collection, turning, etc. These functions take a certain amount of time, resulting in congestion caused by a large number of vehicles gathering in a short period of time.
[0143] The second lane is traversed forward in the electronic map to check whether the second lane passes through the node.
[0144] If the second lane passes the node, that is, the driver controls the vehicle to switch from the first lane to the second lane, it can still continue to drive along the original route. At this time, it can be considered that maintaining the turning condition is valid.
[0145] If the second lane deviates from the node, that is, the driver controls the vehicle to switch from the first lane to the second lane, the original route cannot be continued. For example, the place where the congestion of the first lane ends is the toll station at the entrance of the expressway. The driver intends to drive the vehicle into the expressway, and the second lane deviates from the toll station at the entrance of the expressway. Even if the first lane is highly congested, the first lane is still the best route the driver can choose. At this time, it can be considered that satisfying the turning condition is invalid, and the driver has no motivation to control the vehicle to switch from the first lane to the second lane, thereby improving the accuracy of judging whether the driver has the motivation to control the vehicle to switch from the first lane to the second lane.
[0146] Step 104 : In response to the turning condition, counting a first direction and a magnitude of the angle change of the steering wheel in the vehicle.
[0147] If the current vehicle meets the turning condition, the steering wheel of the vehicle can be continuously monitored to count the first direction and amplitude of the angle change of the steering wheel in the vehicle.
[0148] In a specific implementation, when the turning condition is met, a first angle β of the steering wheel in the vehicle can be recorded as a reference value of the steering wheel angle in the vehicle. After the turning condition is met, a second angle β1 of the steering wheel in the vehicle can be continuously recorded.
[0149] Subtract the first angle from the second angle to get the angle difference.
[0150] The sign of the angle difference is taken as the first direction (β-β1) of the angle change of the steering wheel in the vehicle.
[0151] The absolute value of the angle difference is taken as the amplitude of the angle change of the steering wheel in the vehicle |β-β1|.
[0152] Step 105: If the first direction is the same as the second direction and the amplitude is greater than or equal to a preset change threshold, turn on a turn signal in the vehicle for indicating a turn from the first lane to the second lane.
[0153] In this embodiment, on the one hand, the first direction is compared with the second direction, wherein the second direction is a direction turning from the first lane to the second lane.
[0154] On the other hand, the amplitude is compared with a preset change threshold, which is a calibration value that can be used to measure the amplitude of the change in the steering wheel angle in the vehicle. If the amplitude is greater than the change threshold, it means that the amplitude of the change in the steering wheel angle in the vehicle is large, and sensor noise, habitual shaking of the driver's hands, etc. can be ruled out.
[0155] If the first direction is the same as the second direction and the amplitude is greater than or equal to a preset change threshold, it indicates that the driver intends to control the vehicle to switch from the first lane to the second lane, and the turn signal in the vehicle for indicating the turn from the first lane to the second lane is turned on.
[0156] In a specific implementation, the status of all turn signals in the vehicle may be detected.
[0157] If all turn signals are off, the following two situations are distinguished:
[0158] 1. Mechanical control
[0159] In some vehicles, the turn signal is mechanically controlled, for example, a joystick is used to turn the turn signal on and off. Therefore, in order to ensure the consistency of the vehicle status, a prompt message for turning on the turn signal for indicating the turn from the first lane to the second lane may be generated, prompting the user to turn on the turn signal for indicating the turn from the first lane to the second lane.
[0160] The prompt information includes text information and / or character information, which can be displayed on a dashboard, a vehicle display screen, etc. The prompt information can also include audio data, which can be played inside the vehicle.
[0161] If a designated control enable signal is received through the CAN line, such as the driver turning the turn signal lever, voice controlling the turn signal, etc., the turn signal for indicating turning from the first lane to the second lane is turned on.
[0162] 2. Electronic control
[0163] In some vehicles, the turn signal is electronically controlled. In this case, the turn signal for indicating the turn from the first lane to the second lane can be directly activated, the state of the turn signal can be synchronized and a prompt message can be generated to remind the driver that the turn signal is turned on.
[0164] If the state of any turn signal lamp is on, the state of all turn signal lamps may be maintained.
[0165] In this embodiment, the lane in which the vehicle is traveling on the road is identified as the first lane; a first congestion level for the first lane and a second congestion level for the second lane are respectively obtained, where the second lane is another lane adjacent to the first lane on the road; it is determined whether a preset turning condition is satisfied, and the turning condition at least includes that the first congestion level is greater than the second congestion level; in response to the turning condition, a first direction and an amplitude of an angle change of a steering wheel in the vehicle are counted; if the first direction is the same as the second direction, and the amplitude is greater than or equal to a preset change threshold, a turn signal in the vehicle for indicating a turn from the first lane to the second lane is turned on, and the second direction is the direction of turning from the first lane to the second lane. This embodiment determines whether the driver has the motivation to control the vehicle to switch from the first lane to the second lane based on the congestion situation of the lane, and determines whether the driver has the intention to control the vehicle to switch from the first lane to the second lane based on the change in the angle of the steering wheel. The combination of the two is used as the condition for turning on the turn signal, which can improve the accuracy of detecting the vehicle's lane change, improve the accuracy of turning on the turn signal, and give reminders to other vehicles around the current vehicle, so that drivers of other vehicles have sufficient reaction time to control other vehicles to slow down and avoid, thereby reducing the risks of rear-end collisions, scratches, etc. caused by lane changing. In particular, some drivers will forcibly change lanes in positions where lane changing is not allowed or under conditions that are not conducive to lane changing. Turning on the turn signal in time to remind other vehicles around and allow other vehicles to avoid in time can greatly reduce the probability of danger.
[0166] Embodiment 2
[0167] Figure 3 This is a schematic diagram of the structure of a vehicle turn signal control device provided by Embodiment 2 of the present invention. Figure 3 As shown, the device comprises:
[0168] A lane recognition module 301 is used to identify the lane in which the vehicle is traveling on the road as a first lane;
[0169] A congestion degree acquisition module 302, configured to respectively acquire a first congestion degree of the first lane and a second congestion degree of the second lane, where the second lane is another lane adjacent to the first lane on the road;
[0170] A turning condition determination module 303, configured to determine whether a preset turning condition is satisfied, wherein the turning condition at least includes that the first congestion level is greater than the second congestion level;
[0171] A steering wheel detection module 304, configured to count a first direction and a magnitude of an angle change of a steering wheel in the vehicle in response to the steering condition;
[0172] The turn signal activation module 305 is used to activate the turn signal in the vehicle for indicating a turn from the first lane to the second lane if the first direction is the same as the second direction and the amplitude is greater than or equal to a preset change threshold, and the second direction is the direction of turning from the first lane to the second lane.
[0173] In one embodiment of the present invention, the congestion level acquisition module 302 is further used to:
[0174] detecting the speed of the vehicle while traveling on the road;
[0175] If the speed is less than or equal to a preset vehicle speed threshold, marking the speed as a target speed;
[0176] Counting the proportion of the target speed within a preset time period;
[0177] If the proportion is greater than or equal to a preset proportion threshold, a first congestion level of the first lane and a second congestion level of the second lane are requested from the server.
[0178] In one embodiment of the present invention, the turning condition determination module 303 is further used to:
[0179] Dividing the lane into a plurality of levels representing congestion degrees, the levels comprising a first level and a plurality of second levels, wherein the first level is higher than any of the second levels;
[0180] If the first congestion level belongs to the first level, and the second congestion level belongs to any of the second levels, it is determined that a preset turning condition is met.
[0181] In one embodiment of the present invention, the turning condition determination module 303 is further used to:
[0182] respectively collecting a first driving direction indicated by the first lane and a second driving direction indicated by the second lane;
[0183] If the first driving direction is the same as the second driving direction, then maintaining the turning condition is valid;
[0184] If the first driving direction is different from the second driving direction, it is determined that the turning condition is invalid.
[0185] In one embodiment of the present invention, the turning condition determination module 303 is further used to:
[0186] Obtaining a node in the first lane at which the first congestion level ends;
[0187] If the second lane passes through the node, the turning condition is maintained to be valid;
[0188] If the second lane deviates from the node, it is determined that the turning condition is invalid.
[0189] In one embodiment of the present invention, the steering wheel detection module 304 is further used for:
[0190] When the turning condition is met, recording a first angle of a steering wheel in the vehicle;
[0191] After the turning condition is met, continuously recording a second angle of a steering wheel in the vehicle;
[0192] Subtract the first angle from the second angle to obtain an angle difference;
[0193] taking the sign of the angle difference as the first direction of the angle change of the steering wheel in the vehicle;
[0194] An absolute value of the angle difference is taken as the amplitude of the angle change of the steering wheel in the vehicle.
[0195] In one embodiment of the present invention, the turn signal activation module 305 is further used for:
[0196] Detecting the status of all turn signals in the vehicle;
[0197] If the states of all the turn signals are off, generating prompt information for turning on the turn signal for indicating turning from the first lane to the second lane;
[0198] If a designated control enable signal is received, the turn signal for indicating a turn from the first lane to the second lane is turned on.
[0199] The control device for a vehicle turn signal provided in an embodiment of the present invention can execute the control method for a vehicle turn signal provided in any embodiment of the present invention, and has functional modules and beneficial effects corresponding to executing the control method for a vehicle turn signal.
[0200] Embodiment 3
[0201] Figure 4A schematic diagram of the structure of an electronic device 10 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.
[0202] like Figure 4 As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0203] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0204] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as a method for controlling a vehicle turn signal.
[0205] In some embodiments, the method for controlling a vehicle turn signal lamp may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the method for controlling a vehicle turn signal lamp described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to execute the method for controlling a vehicle turn signal lamp by any other appropriate means (e.g., by means of firmware).
[0206] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0207] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0208] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0209] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).
[0210] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0211] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.
[0212] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.
[0213] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A method for controlling a vehicle turn signal lamp, characterized in that: include: Identify the lane in which the vehicle is traveling on the road as the first lane; respectively obtaining a first congestion level of the first lane and a second congestion level of the second lane, where the second lane is another lane adjacent to the first lane on the road; Determining that a preset turning condition is satisfied, the turning condition at least including that the first congestion level is greater than the second congestion level; In response to the steering condition, counting a first direction and a magnitude of an angle change of a steering wheel in the vehicle; If the first direction is the same as the second direction and the amplitude is greater than or equal to a preset change threshold, turning on a turn signal in the vehicle for indicating a turn from the first lane to the second lane, the second direction being a direction of turning from the first lane to the second lane; The obtaining of a first congestion level of the first lane and a second congestion level of the second lane respectively includes: detecting a speed of the vehicle while traveling on the road; If the speed is less than or equal to a preset vehicle speed threshold, marking the speed as a target speed; Counting the proportion of the target speed within a preset time period; If the proportion is greater than or equal to a preset proportion threshold, requesting a first congestion level of the first lane and a second congestion level of the second lane from the server; Wherein, the determining that the preset turning condition is met further includes: Obtaining a node in the first lane at which the first congestion level ends; If the second lane passes through the node, the turning condition is maintained to be valid; If the second lane deviates from the node, it is determined that the turning condition is invalid.
2. The method according to claim 1, characterized in that The determining that the preset turning condition is satisfied further includes: Dividing the lane into a plurality of levels representing congestion degrees, the levels comprising a first level and a plurality of second levels, wherein the first level is higher than any of the second levels; If the first congestion level belongs to the first level, and the second congestion level belongs to any of the second levels, it is determined that a preset turning condition is met.
3. The method according to claim 2, characterized in that The determining that the preset turning condition is satisfied further includes: respectively collecting a first driving direction indicated by the first lane and a second driving direction indicated by the second lane; If the first driving direction is the same as the second driving direction, then maintaining the turning condition is valid; If the first driving direction is different from the second driving direction, it is determined that the turning condition is invalid.
4. The method according to any one of claims 1 to 3, characterized in that The step of counting a first direction and a magnitude of an angle change of a steering wheel in the vehicle in response to the steering condition comprises: When the turning condition is met, recording a first angle of a steering wheel in the vehicle; After the turning condition is met, continuously recording a second angle of a steering wheel in the vehicle; Subtract the first angle from the second angle to obtain an angle difference; taking the sign of the angle difference as the first direction of the angle change of the steering wheel in the vehicle; An absolute value of the angle difference is taken as the amplitude of the angle change of the steering wheel in the vehicle.
5. The method according to any one of claims 1 to 3, characterized in that: The step of turning on a turn signal in the vehicle for indicating turning from the first lane to the second lane includes: Detecting the status of all turn signals in the vehicle; If the states of all the turn signals are off, generating prompt information for turning on the turn signal for indicating turning from the first lane to the second lane; If a designated control enable signal is received, the turn signal for indicating a turn from the first lane to the second lane is turned on.
6. A control device for a vehicle turn signal lamp, characterized in that: include: A lane recognition module, used to identify the lane in which the vehicle is traveling on the road as the first lane; a congestion degree acquisition module, used to respectively acquire a first congestion degree of the first lane and a second congestion degree of the second lane, where the second lane is another lane adjacent to the first lane on the road; A turning condition determination module, used to determine whether a preset turning condition is satisfied, wherein the turning condition at least includes that the first congestion level is greater than the second congestion level; a steering wheel detection module, configured to count a first direction and a magnitude of an angle change of a steering wheel in the vehicle in response to the steering condition; a turn signal activation module, configured to activate a turn signal in the vehicle for indicating a turn from the first lane to the second lane if the first direction is the same as the second direction and the amplitude is greater than or equal to a preset change threshold, wherein the second direction is a direction of turning from the first lane to the second lane; The congestion degree acquisition module is further specifically used for: detecting a speed of the vehicle while traveling on the road; If the speed is less than or equal to a preset vehicle speed threshold, marking the speed as a target speed; Counting the proportion of the target speed within a preset time period; If the proportion is greater than or equal to a preset proportion threshold, requesting a first congestion level of the first lane and a second congestion level of the second lane from the server; The turning condition determination module is further specifically used for: Obtaining a node in the first lane at which the first congestion level ends; If the second lane passes through the node, the turning condition is maintained to be valid; If the second lane deviates from the node, it is determined that the turning condition is invalid.
7. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executed by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the vehicle turn signal control method according to any one of claims 1 to 5.
8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and the computer program is used to enable a processor to implement the vehicle turn signal control method according to any one of claims 1 to 5 when executed.
Citation Information
Patent Citations
Method for displaying accident lane of congested road section on electronic map
CN108871357A
Driver lane changing intention determination method, device and system and storage medium
CN111806439A
