Automatic switching method and device for high beam and low beam, electronic equipment and storage medium
By obtaining and analyzing lighting environment information and vehicle information in front, and automatically judging and controlling the switching of vehicle lighting mode, the problem of traffic accidents caused by drivers ignoring light switching is solved, and the safety of the vehicle and the intelligence of light switching is improved.
Patent Information
- Application Number
- CN202510635518.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-16
- Publication Date
- 2025-06-27
AI Technical Summary
During driving, the driver may ignore the switching operation of lights due to insufficient experience or complicated road conditions, causing traffic accidents.
By obtaining lighting environment information and vehicle information in front, the same-direction distance threshold is determined, and based on the front vehicle information, the same-direction distance threshold and the current lighting mode, it is determined whether the light mode switch is performed. If so, the driver will be prompted and switched.
Improve the intelligence and accuracy of light switching, reduce traffic accidents caused by drivers ignoring light switching, and improve vehicle safety.
Smart Images

Figure CN120207212A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to vehicle control technologies, and in particular, to a method, device, electronic device, and storage medium for automatic high-low beam switching. Background Art
[0002] During the driving process of a vehicle, the control of the high beam and low beam of the headlight is an important part to ensure driving safety.
[0003] In the prior art, the driver needs to switch the high beam and low beam according to driving experience. However, during the driving process, the driver may, due to lack of experience or complex road conditions, neglect the switching operation of the lights, resulting in traffic accidents. Summary of the Invention
[0004] The present application provides a method, device, electronic device, and storage medium for automatic high-low beam switching to improve the intelligence of light switching and the safety of the vehicle.
[0005] In a first aspect, an embodiment of the present application provides a method for automatic high-low beam switching, and the method for automatic high-low beam switching includes:
[0006] Obtain lighting environment information and information of the vehicle ahead;
[0007] Determine a same-direction distance threshold according to the lighting environment information;
[0008] Determine whether to perform a light mode switch according to the information of the vehicle ahead, the same-direction distance threshold, and the current light mode; the light mode includes a high beam mode and a low beam mode;
[0009] If so, prompt the driver that a light mode switch will be performed and control the light mode to switch.
[0010] In a second aspect, an embodiment of the present application further provides an automatic high-low beam switching device, and the automatic high-low beam switching device includes:
[0011] An information acquisition module, configured to obtain lighting environment information and information of the vehicle ahead;
[0012] A same-direction distance threshold determination module, configured to determine a same-direction distance threshold according to the lighting environment information;
[0013] A light mode determination module, configured to determine whether to perform a light mode switch according to the information of the vehicle ahead, the same-direction distance threshold, and the current light mode; the light mode includes a high beam mode and a low beam mode;
[0014] A light mode switching module, configured to, if so, prompt the driver that a light mode switch will be performed and control the light mode to switch.
[0015] In a third aspect, an embodiment of the present application further provides an electronic device, which includes:
[0016] One or more processors;
[0017] A storage device for storing one or more programs;
[0018] When the one or more programs are executed by the one or more processors, the one or more processors implement any one of the automatic high-low beam switching methods provided by the embodiments of the present application.
[0019] In a fourth aspect, an embodiment of the present application further provides a storage medium including computer-executable instructions, which are used to execute any one of the automatic high-low beam switching methods provided by the embodiments of the present application when executed by a computer processor.
[0020] The present application obtains lighting environment information and oncoming vehicle information; determines a same-direction distance threshold according to the lighting environment information, and can determine the corresponding same-direction distance threshold in real time according to the current lighting environment information, so that the same-direction distance threshold conforms to the current lighting environment and improves the rationality of the same-direction distance threshold; determines whether to perform a lighting mode switch according to the oncoming vehicle information, the same-direction distance threshold, and the current lighting mode; the lighting mode includes a high beam mode and a low beam mode; if so, prompts the driver that a lighting mode switch will be performed and controls the lighting mode to switch. By automatically judging and controlling the lighting mode switch, the intelligence of the lighting mode switch is improved, and based on the real-time determination feature of the same-direction distance threshold, the accuracy of the lighting switch is improved, thereby improving the safety of the vehicle. Therefore, through the technical solution of the present application, the problem that the driver may neglect the lighting switch operation due to lack of experience or complex road conditions during driving, resulting in traffic accidents, is solved, and the effects of improving the intelligence of the lighting switch and improving the safety of the vehicle are achieved. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] Figure 1 is a flowchart of an automatic high-low beam switching method in Embodiment 1 of the present application;
[0022] Figure 2 is a flowchart of an automatic high-low beam switching method in Embodiment 2 of the present application;
[0023] Figure 3 is a schematic structural diagram of an automatic high-low beam switching device in Embodiment 3 of the present application;
[0024] Figure 4 is a schematic structural diagram of an electronic device in Embodiment 4 of the present application. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0025] To enable those skilled in the art to better understand the solution of this application, the technical solutions in the embodiments of this application will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of this application. Obviously, the described embodiments are only a part of the embodiments of this application, rather than all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of this application.
[0026] It should be noted that the terms "first" and "second" in the specification and claims of this application and the above-mentioned drawings are used to distinguish similar objects, and do not necessarily need to be used to describe a specific order or sequence. It should be understood that such data can be interchanged under appropriate circumstances so that the embodiments of this application described here can be implemented in an order other than those illustrated or described here. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device including a series of steps or units does not necessarily have to be limited to those steps or units clearly listed, but may include other steps or units not clearly listed or inherent to these processes, methods, products or devices.
[0027] Embodiment 1
[0028] Figure 1 It is a flowchart of a high-low beam automatic switching method provided for Embodiment 1 of this application. This embodiment is applicable to the situation of automatically switching between the high beam mode and the low beam mode of the vehicle lights during driving. This method can be executed by a high-low beam automatic switching device, which can be implemented by software and / or hardware and is specifically configured in a vehicle, such as a commercial vehicle.
[0029] See Figure 1 The high-low beam automatic switching method shown specifically includes the following steps:
[0030] S110. Obtain lighting environment information and information of the vehicle ahead.
[0031] The lighting environment information can be relevant information about lighting conditions and is used to determine whether to switch the lighting mode. Exemplarily, the lighting environment information can include street lamp lighting intensity and visibility, etc., and this application does not make specific limitations on this. The street lamp lighting intensity and visibility can be determined by image analysis of the images obtained by the camera; the street lamp lighting intensity and visibility can also be obtained through corresponding sensors, and this application does not make specific limitations on this. When the lighting conditions are good, the low beam mode needs to be used. When the visibility is relatively low, such as in rainy days, the distance of using the high beam mode can be appropriately extended. Therefore, the lighting environment information can include street lamp lighting intensity and visibility, etc.
[0032] The information of the vehicle ahead can be the relevant information of the vehicle in front of the host vehicle, which is used to determine whether the lighting mode needs to be switched. Exemplarily, the information of the vehicle ahead may include the lateral distance and longitudinal distance between the vehicle ahead and the host vehicle, as well as the relative direction of the two vehicles. Exemplarily, the information of the vehicle ahead can be determined by at least one of a ranging radar, a map, and wireless communication between vehicles. When the vehicle is driving in the high beam mode, if a vehicle is detected ahead, the host vehicle needs to switch to the low beam mode within a certain longitudinal distance and lateral distance to avoid affecting the line of sight of the vehicle ahead and ensure driving safety.
[0033] S120. Determine the same-direction distance threshold according to the lighting environment information.
[0034] The same-direction distance threshold can be the workshop distance threshold for switching the high beam mode to the low beam mode when driving in the same direction. When the vehicle detects that the distance between the host vehicle and the vehicle driving ahead in the same direction is less than the same-direction distance threshold, it can be determined that the lighting needs to be switched to the low beam mode to avoid the high beam of the rear vehicle interfering with the line of sight of the driver of the vehicle ahead, causing light pollution and forming a safety hazard. The lighting environment information includes the street lamp lighting intensity and visibility, and can be determined by a preset mathematical model or a deep learning model through the street lamp lighting intensity and visibility. The same-direction distance threshold is not specifically limited in this application.
[0035] In an alternative embodiment, determining the same-direction distance threshold according to the lighting environment information includes: determining the same-direction distance threshold based on the street lamp lighting intensity and visibility, as well as the lighting intensity weight corresponding to the street lamp lighting intensity and the visibility weight corresponding to the visibility.
[0036] The lighting intensity weight and the visibility weight can be determined by professional technicians according to experience or experiments, or determined by a deep learning model. This application does not specifically limit this. Exemplarily, based on historical data, the lighting intensity weight and the visibility weight can be determined based on a deep learning model as follows: The accident street lamp lighting intensity and accident visibility in historical traffic accidents caused by high beam lights can be used as sample data, and the workshop distance at the time of the historical accident can be used as a label to train the deep learning model to obtain the lighting intensity weight and the visibility weight. For example, the deep learning model can be a multiple linear regression model.
[0037] The weighted sum is performed through the street lamp illumination intensity, the illumination intensity weight, the visibility, and the visibility weight, that is: the street lamp illumination intensity is multiplied by the illumination intensity weight corresponding to the street lamp illumination intensity, the visibility is multiplied by the visibility weight corresponding to the visibility, and the two products are added to obtain the same-direction distance threshold. By considering the current street lamp illumination situation and the influence of weather conditions on illumination through the street lamp illumination intensity and the visibility, the same-direction distance threshold can avoid causing light pollution to the vehicle ahead in the driving direction while ensuring the illumination of the vehicle itself, thus ensuring driving safety.
[0038] By determining the same-direction distance threshold based on the street lamp illumination intensity and the visibility, as well as the illumination intensity weight corresponding to the street lamp illumination intensity and the visibility weight corresponding to the visibility, considering the two factors of the street lamp illumination intensity and the visibility to determine the same-direction distance threshold, taking into account the street lamp illumination situation and special weather factors, improving the rationality of the same-direction distance threshold, being able to adapt to different illumination environments, improving the accuracy of the same-direction distance threshold, and being able to avoid causing light pollution to the vehicle ahead in the same-direction driving direction while ensuring the illumination of the vehicle itself, ensuring driving safety.
[0039] S130. Determine whether to perform a light mode switch according to the information of the vehicle ahead, the same-direction distance threshold, and the current light mode; the light mode includes the high beam mode and the low beam mode.
[0040] The high beam mode can be the light mode with the high beam lamp turned on. The low beam mode can be the light mode with the low beam lamp turned on. When it is determined according to the information of the vehicle ahead that the distance between the following vehicle and the vehicle ahead in the same direction is less than the same-direction distance threshold, if the current light mode is the high beam mode, it can be determined to perform a light mode switch; if the current light mode is the low beam mode, it can be determined not to perform a light mode switch.
[0041] The information of the vehicle ahead also includes the relative direction of the two vehicles, that is, the same-direction and the oncoming direction. Different relative directions can adopt different judgment methods for light mode switching, for example, using different distance thresholds. The information of the vehicle ahead can also include the lateral distance. When the lateral distance is greater than a certain distance threshold, it can be considered that the following vehicle will not cause light pollution to the vehicle ahead. Therefore, if it is determined that the vehicle ahead is a vehicle driving in the same direction, before judging through the same-direction distance threshold, it can be judged whether to perform a light mode switch through the lateral distance. Specifically, when the lateral distance is greater than or equal to a certain distance threshold, it is determined not to perform a light mode switch; when the lateral distance is less than a certain distance threshold, it is determined to judge whether to perform a light mode switch through the same-direction distance threshold.
[0042] S140. If so, prompt the driver that the light mode will be switched and control the light mode to be switched.
[0043] If so, that is, it is determined to switch the lighting mode. At this time, the driver is prompted that the lighting mode will be switched to avoid panic caused by sudden lighting switching. Exemplarily, when prompting the driver that the lighting mode will be switched, the reason for the switch can be added to prompt the driver to pay attention to the relevant road conditions. For example, when prompting the driver that the lighting mode will be switched, it can be a voice broadcast, and the broadcast content can be "The distance between the vehicle in the same direction ahead and this vehicle is relatively close, and the current lighting mode is switched from the high beam mode to the low beam mode". Controlling the lighting mode to switch can be to control the switch in the lighting control circuit to switch the lighting mode to achieve automatic switching between high and low beams.
[0044] It should be noted that the relevant information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data for display, data for analysis, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use, and processing of relevant data comply with the relevant laws, regulations, and standards in the relevant regions.
[0045] According to the research results, currently commercial vehicles have the characteristics of long operating mileage, complex driving road conditions, and high requirements for timeliness. Due to these characteristics, drivers must ensure a high degree of concentration during driving, which easily causes fatigue driving. At this time, it is usually easy to ignore the switching operations of high and low beams and the like. At the same time, as more and more new users join the ranks of truck drivers, new drivers may also ignore the use of vehicle lights due to lack of driving experience.
[0046] There are a large number of situations where commercial vehicles drive at night. When meeting vehicles at night on highways and national roads, currently, the driver needs to manually switch the high and low beams. At this time, some drivers are prone to ignoring the switch of the lighting switch, thus posing a safety hazard and causing traffic accidents. At the same time, due to the characteristics of commercial vehicles such as heavy load quality, large overall vehicle volume, and large inertia force, once a traffic accident occurs, it will have a huge impact and cause serious casualties. According to the survey results, the proportion of traffic accidents involving commercial vehicles is higher than that of passenger vehicles, and the degree of harm caused once an accident occurs is higher than that of passenger vehicles. Therefore, in order to improve the driving safety of commercial vehicles, it is necessary to assist in controlling the switching of lights to improve the standardization of light use and improve vehicle driving safety.
[0047] The technical solution of this embodiment is to obtain lighting environment information and oncoming vehicle information; determine the same-direction distance threshold according to the lighting environment information, so that the same-direction distance threshold can be determined corresponding to the current lighting environment in real time, making the same-direction distance threshold conform to the current lighting environment and improving the rationality of the same-direction distance threshold; determine whether to switch the lighting mode according to the oncoming vehicle information, the same-direction distance threshold, and the current lighting mode; the lighting mode includes the high beam mode and the low beam mode; if so, prompt the driver that the lighting mode will be switched and control the lighting mode to be switched. By automatically judging and controlling the lighting mode switch, the intelligence of the lighting mode switch is improved, and based on the real-time determination feature of the same-direction distance threshold, the accuracy of the lighting switch is improved, thereby improving the safety of the vehicle. Therefore, through the technical solution of this application, the problem that the driver may neglect the lighting switch operation due to lack of experience or complex road conditions during driving, resulting in traffic accidents, is solved, and the effects of improving the intelligence of the lighting switch and the safety of the vehicle are achieved.
[0048] Embodiment 2
[0049] Figure 2 The flowchart of a high and low beam automatic switching method provided by Embodiment 2 of this application. The technical solution of this embodiment is further refined on the basis of the above technical solution.
[0050] Further, "determine whether to switch the lighting mode according to the oncoming vehicle information, the same-direction distance threshold, and the current lighting mode" is refined to: "determine whether the oncoming vehicle is a vehicle traveling in the same direction according to the relative direction in the oncoming vehicle information; if so, judge whether the lateral distance in the oncoming vehicle information is less than the preset lateral distance threshold; if so, when the current lighting mode is the high beam mode and the distance between vehicles in the oncoming vehicle information is less than the same-direction distance threshold, determine to switch the lighting mode", so as to determine whether to switch the lighting mode.
[0051] See Figure 2 A high and low beam automatic switching method shown in the figure, including:
[0052] S210. Obtain lighting environment information and oncoming vehicle information.
[0053] S220. Determine the same-direction distance threshold according to the lighting environment information.
[0054] S230. Determine whether the oncoming vehicle is a vehicle traveling in the same direction according to the relative direction in the oncoming vehicle information.
[0055] The relative directions may include the same direction and the opposite direction. The same direction means that the driving directions are the same, and the opposite direction means that the driving directions are opposite. The relative direction can be determined by radar detection, wireless communication between vehicles, or the collected video. This application does not make specific limitations in this regard. If the relative direction in the information of the vehicle ahead is the same direction, it is determined that the vehicle ahead is a vehicle traveling in the same direction; otherwise, it is determined that the vehicle ahead is a vehicle traveling in the opposite direction.
[0056] S240. If so, it is determined whether the lateral distance in the information of the vehicle ahead is less than a preset lateral distance threshold.
[0057] If so, that is, it is determined that the vehicle ahead is a vehicle traveling in the same direction. At this time, the driving directions of the vehicle and the vehicle ahead are the same, and it is determined whether the lateral distance in the information of the vehicle ahead is less than a preset lateral distance threshold. The preset lateral distance threshold can be the threshold of the preset lateral distance, which is used to determine whether to continue the judgment of the light mode switching. The lateral distance is the distance perpendicular to the driving direction of the vehicle. If the lateral distance is less than the preset lateral distance threshold, the judgment of the light mode switching is continued according to the same-direction distance threshold; otherwise, it is considered that there will be no safety problems for the vehicle and the vehicle ahead due to the lights. Therefore, it can be determined not to perform the light mode switching.
[0058] In an alternative embodiment, after determining whether it is a vehicle traveling in the same direction according to the relative direction in the information of the vehicle ahead, it further includes: if not, the maximum value of the preset opposite-direction distance threshold and the same-direction distance threshold is used as the target distance threshold; when the distance between vehicles in the information of the vehicle ahead is less than the target distance threshold and the current light mode is the high beam mode, it is determined to perform the light mode switching.
[0059] If not, that is, it is determined that the vehicle ahead is a vehicle traveling in the opposite direction. At this time, the judgment of whether to perform the light mode switching is made according to the light switching rule of the vehicle traveling in the opposite direction. The preset opposite-direction distance threshold can be the distance threshold when vehicles traveling in the opposite direction meet according to traffic rules, so as to ensure the compliance of the vehicle lights used during the meeting. According to traffic rules, when the distance between vehicles traveling in the opposite direction is less than 150 meters, the low beam should be used. Therefore, the opposite-direction distance threshold can be preset to 150 meters. When the distance between vehicles in the information of the vehicle ahead is less than the preset opposite-direction distance threshold and the current light mode is the high beam mode, it is determined to perform the light mode switching so that the switching of the light mode conforms to traffic rules and ensures the safety of vehicle driving.
[0060] When the lighting environment is good, the determined same-direction distance threshold may be greater than the preset oncoming distance threshold. At this time, the vehicle's lighting mode can be switched to the low beam mode in advance to ensure the safety of the vehicle. When the lighting environment is poor, the determined same-direction distance threshold may be less than the preset oncoming distance threshold. At this time, the vehicle's lighting mode is switched to the low beam mode according to the preset oncoming distance threshold to ensure that the vehicle's driving complies with traffic rules. Therefore, the maximum value of the preset oncoming distance threshold and the same-direction distance threshold is used as the target distance threshold; when the distance between vehicles in the front vehicle information is less than the target distance threshold and the current lighting mode is the high beam mode, it is determined that the lighting mode needs to be switched.
[0061] If not, then the maximum value of the preset oncoming distance threshold and the same-direction distance threshold is used as the target distance threshold; when the distance between vehicles in the front vehicle information is less than the target distance threshold and the current lighting mode is the high beam mode, it is determined that the lighting mode needs to be switched. By setting the oncoming distance threshold, the lighting switching rules for oncoming vehicles comply with traffic rules, ensuring the compliance and safety of lighting use when vehicles meet, and by comparing the oncoming distance threshold and the same-direction distance threshold, taking the maximum value as the target distance threshold, the lighting mode can be switched in advance under compliance conditions to improve the safety of vehicle driving.
[0062] S250: If so, then determine whether to switch the lighting mode according to the current lighting mode, the distance between vehicles in the front vehicle information, and the same-direction distance threshold.
[0063] If so, that is, the lateral distance in the front vehicle information is less than the preset lateral distance threshold. At this time, determine whether to switch the lighting mode according to the current lighting mode, the distance between vehicles in the front vehicle information, and the same-direction distance threshold.
[0064] Optionally, when determining whether to switch the lighting mode according to the current lighting mode, the distance between vehicles in the front vehicle information, and the same-direction distance threshold, it includes: when the current lighting mode is the high beam mode and the distance between vehicles in the front vehicle information is less than the same-direction distance threshold, determine to switch the lighting mode.
[0065] When the current lighting mode is the high beam mode and the distance between vehicles in the front vehicle information is less than the same-direction distance threshold, determine to switch the lighting mode; when the current lighting mode is the high beam mode and the distance between vehicles in the front vehicle information is greater than or equal to the same-direction distance threshold, determine not to switch the lighting mode; when the current lighting mode is the low beam mode and the distance between vehicles in the front vehicle information is less than the same-direction distance threshold, do not switch the lighting mode. Realize the intelligent judgment of lighting mode switching and improve the accuracy of lighting switching.
[0066] S260: If so, then prompt the driver that the lighting mode will be switched and control the lighting mode to be switched.
[0067] In an alternative embodiment, the method further includes: obtaining light intensity information through a light sensor and determining whether to turn off the light according to the light intensity information.
[0068] The light intensity information may be the light intensity information of sunlight and is used to determine whether to turn off the light. The light sensor may be a sensor sensitive to sunlight and is used to determine the light intensity information. A light threshold may be preset. When the light intensity is greater than the preset light threshold, the light is turned off to save power resources. When the light intensity is greater than the preset light threshold, the user may not visually perceive that the light is still on, thus ignoring the on state of the light and causing waste of electrical resources. Therefore, determining whether to turn off the light according to the light intensity information realizes the intelligent turning off of the light.
[0069] Obtaining light intensity information through a light sensor and determining whether to turn off the light according to the light intensity information realizes the intelligent turning off of the light and saves electrical resources.
[0070] In an alternative embodiment, the method further includes: obtaining information about the road ahead; judging whether the road ahead is a preset switching road through the information about the road ahead; the preset switching road includes at least one of a sharp bend, a slope, an arch bridge, a crosswalk or an intersection without traffic signal control; if so, prompting the driver that the light mode will be cyclically switched and controlling the light mode to be cyclically switched.
[0071] The information about the road ahead may be the type of the road ahead and is used to judge whether to control the light mode to be cyclically switched. The information about the road ahead may be obtained through a map software or a radar, and the present application does not make specific limitations thereto. According to traffic rules, a sharp bend, a slope, an arch bridge, a crosswalk or an intersection without traffic signal control requires alternating use of the high beam mode and the low beam mode of the light. Therefore, a sharp bend, a slope, an arch bridge, a crosswalk or an intersection without traffic signal control may be used as the preset switching road.
[0072] If so, that is, the road ahead is a preset switching road. At this time, it is necessary to control the light mode to be cyclically switched. The cyclic switching is to cyclically control the light to be in the high beam mode and the low beam mode, that is, to alternately use the high beam mode and the low beam mode of the light. If so, prompting the driver that the light mode will be cyclically switched, prompting the user that the high beam mode and the low beam mode of the light need to be alternately used ahead, improving the driver's safety awareness, improving the user experience, and controlling the light mode to be cyclically switched, realizing the intelligent control of the light, and ensuring the safety and standardization of the light use during vehicle driving.
[0073] By obtaining the information of the road ahead; based on the information of the road ahead, determining whether the road ahead is a preset switching road; the preset switching road includes at least one of a sharp bend, a slope road, an arch bridge, a crosswalk or an intersection without traffic signal control; if so, prompting the driver that the light mode will be cyclically switched, and controlling the light mode to be cyclically switched, and in the preset switching road, by cyclically switching the light mode, realizing the alternate use of the high beam mode and the low beam mode of the light, realizing the intelligent control of the light, and ensuring the safety and standardization of the light use during vehicle driving.
[0074] In the technical solution of this embodiment, by determining whether the vehicle ahead is a vehicle traveling in the same direction according to the relative direction in the information of the vehicle ahead; if so, determining whether the lateral distance in the information of the vehicle ahead is less than the preset lateral distance threshold; if so, then determining whether to switch the light mode according to the current light mode, the distance between vehicles in the information of the vehicle ahead and the same-direction distance threshold. It can be determined to switch the light mode when the current light mode is the high beam mode and the distance between vehicles in the information of the vehicle ahead is less than the same-direction distance threshold. Through the lateral distance judgment, when the lateral distance is less than the preset lateral distance threshold, it is only necessary to continue to judge whether to switch the light mode through the same-direction distance threshold. Determining whether to continue the judgment according to the lateral distance reduces unnecessary judgment processes, reduces the occupation of computing resources, and avoids miscontrol of the light mode. By determining to switch the light mode when the current light mode is the high beam mode and the distance between vehicles in the information of the vehicle ahead is less than the same-direction distance threshold, and through the real-time nature of the same-direction distance threshold, the accuracy of the light mode switching is ensured, and the safety of the vehicle is improved.
[0075] Embodiment III
[0076] Figure 3 The following is a schematic structural diagram of a high and low beam automatic switching device provided by Embodiment III of the present application. This embodiment is applicable to the situation of automatically switching between the high beam mode and the low beam mode of the lights of a vehicle in motion, and is configured in a commercial vehicle. The specific structure of the high and low beam automatic switching device is as follows:
[0077] An information acquisition module 310, configured to acquire illumination environment information and information of the vehicle ahead;
[0078] A same-direction distance threshold determination module 320, configured to determine a same-direction distance threshold according to the illumination environment information;
[0079] A light mode determination module 330, configured to determine whether to switch the light mode according to the information of the vehicle ahead, the same-direction distance threshold, and the current light mode; the light mode includes a high beam mode and a low beam mode;
[0080] A light mode switching module 340, configured to, if so, prompt the driver that the light mode will be switched, and control the light mode to be switched.
[0081] In the technical solution of this embodiment, by obtaining lighting environment information and oncoming vehicle information, and determining a same-direction distance threshold according to the lighting environment information, the corresponding same-direction distance threshold can be determined in real time according to the current lighting environment information, so that the same-direction distance threshold conforms to the current lighting environment and the rationality of the same-direction distance threshold is improved. Then, according to the oncoming vehicle information, the same-direction distance threshold, and the current light mode, it is determined whether to switch the light mode. The light mode includes a high beam mode and a low beam mode. If so, the driver is prompted that the light mode will be switched, and the light mode is controlled to be switched. By automatically judging and controlling the light mode switching, the intelligence of the light mode switching is improved. And based on the real-time determination feature of the same-direction distance threshold, the accuracy of the light switching is improved, thereby improving the safety of the vehicle. Therefore, through the technical solution of this application, the problem that the driver may neglect the light switching operation due to lack of experience or complex road conditions during driving, resulting in traffic accidents, is solved, and the effects of improving the intelligence of the light switching and the safety of the vehicle are achieved.
[0082] Optionally, the light mode determination module 330 includes:
[0083] A relative direction determination unit, configured to determine whether the oncoming vehicle is a vehicle traveling in the same direction according to the relative direction in the oncoming vehicle information;
[0084] A lateral distance judgment unit, configured to, if so, judge whether the lateral distance in the oncoming vehicle information is less than a preset lateral distance threshold;
[0085] A same-direction light mode determination unit, configured to, if so, determine whether to switch the light mode according to the current light mode, the distance between vehicles in the oncoming vehicle information, and the same-direction distance threshold.
[0086] Optionally, the light mode determination module 330 further includes:
[0087] A target distance threshold determination unit, configured to, if not, use the maximum value of the preset oncoming distance threshold and the same-direction distance threshold as the target distance threshold;
[0088] An oncoming light mode determination unit, configured to determine to switch the light mode when the distance between vehicles in the oncoming vehicle information is less than the target distance threshold and the current light mode is the high beam mode.
[0089] Optionally, the same-direction distance threshold determination module 320 includes:
[0090] A same-direction distance threshold determination unit, configured to determine the same-direction distance threshold based on the street lamp illumination intensity and visibility, as well as the illumination intensity weight corresponding to the street lamp illumination intensity and the visibility weight corresponding to the visibility.
[0091] Optionally, the high and low beam automatic switching device further includes:
[0092] A light-off judgment module, configured to obtain light intensity information through a light sensor, and determine whether to turn off the light according to the light intensity information.
[0093] Optionally, the high and low beam automatic switching device further includes:
[0094] A front road information acquisition module, configured to acquire front road information;
[0095] A front road information judgment module, configured to judge whether the front road is a preset switching road through the front road information; the preset switching roads include at least one of a sharp turn, a slope, an arch bridge, a crosswalk or an intersection without traffic signal control;
[0096] A cyclic switching control module, configured to, if so, prompt the driver that the light mode will be cyclically switched, and control the light mode to be cyclically switched.
[0097] The high and low beam automatic switching device provided by the embodiment of the present application can execute the high and low beam automatic switching method provided by any embodiment of the present application, and has corresponding function modules and beneficial effects for executing the high and low beam automatic switching method.
[0098] According to an embodiment of the present invention, the present invention further provides an electronic device, a readable storage medium and a computer program product.
[0099] Embodiment 4
[0100] Figure 4 A schematic structural diagram of an electronic device provided for Embodiment 4 of the present application is shown in Figure 4 As shown, the electronic device includes a processor 410, a memory 420, an input device 430, and an output device 440; the number of processors 410 in the electronic device can be one or more, Figure 4 Taking one processor 410 as an example; the processor 410, the memory 420, the input device 430, and the output device 440 in the electronic device can be connected through a bus or other means, Figure 4 Taking the connection through the bus as an example.
[0101] The memory 420, being a computer-readable storage medium, can be used to store software programs, computer-executable programs, and modules, such as the program instructions / modules corresponding to the high and low beam automatic switching method in the embodiments of the present application (for example, the information acquisition module 310, the same-direction distance threshold determination module 320, the lighting mode determination module 330, and the lighting mode switching module 340). The processor 410 executes various functional applications and data processing of the electronic device by running the software programs, instructions, and modules stored in the memory 420, that is, implements the above-mentioned high and low beam automatic switching method.
[0102] The memory 420 may mainly include a program storage area and a data storage area. Among them, the program storage area can store an operating system and application programs required for at least one function; the data storage area can store data created according to the use of the terminal, etc. In addition, the memory 420 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other non-volatile solid-state storage devices. In some instances, the memory 420 may further include a memory remotely set relative to the processor 410, and these remote memories can be connected to the electronic device through a network. Examples of the above network include but are not limited to the Internet, enterprise intranets, local area networks, mobile communication networks, and combinations thereof.
[0103] The input device 430 can be used to receive input character information and generate key signal inputs related to the user settings and function controls of the electronic device. The output device 440 may include display devices such as a display screen.
[0104] Embodiment Five
[0105] Embodiment Five of the present application further provides a storage medium containing computer-executable instructions. The computer-executable instructions are used to execute a high and low beam automatic switching method when executed by a computer processor. The method includes: acquiring lighting environment information and information of the vehicle ahead; determining a same-direction distance threshold according to the lighting environment information; determining whether to perform a lighting mode switch according to the information of the vehicle ahead, the same-direction distance threshold, and the current lighting mode; the lighting mode includes a high beam mode and a low beam mode; if so, prompting the driver that a lighting mode switch will be performed and controlling the lighting mode to switch.
[0106] Certainly, the computer-executable instructions of the storage medium containing computer-executable instructions provided by the embodiments of the present application are not limited to the above-mentioned method operations, and can also execute related operations in the high and low beam automatic switching methods provided by any embodiment of the present application.
[0107] From the above description of the embodiments, those skilled in the art can clearly understand that the present application can be implemented by means of software and necessary general hardware. Of course, it can also be implemented by hardware, but in many cases the former is a better implementation manner. Based on such an understanding, the technical solution of the present application, in essence or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as a floppy disk, read-only memory (ROM), random access memory (RAM), flash memory (FLASH), hard disk or optical disc of a computer, etc., and includes several instructions for causing an electronic device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in various embodiments of the present application.
[0108] It should be noted that in the embodiments of the above automatic high and low beam switching device, the various units and modules included are only divided according to functional logic, but are not limited to the above division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of mutual distinction and do not limit the protection scope of the present application.
[0109] Note that the above is only a preferred embodiment of the present application and the technical principles applied. Those skilled in the art will understand that the present application is not limited to the specific embodiments described herein, and various obvious changes, re-adjustments and substitutions can be made by those skilled in the art without departing from the protection scope of the present application. Therefore, although the present application has been described in more detail through the above embodiments, the present application is not limited to the above embodiments. Without departing from the concept of the present application, more other equivalent embodiments can be included, and the scope of the present application is determined by the scope of the appended claims.
Claims
1. A method for automatically switching between high and low beams, characterized in that: include: Obtain lighting environment information and vehicle information ahead; Determining a same-direction distance threshold according to the lighting environment information; Determine whether to switch the light mode according to the preceding vehicle information, the same-direction distance threshold and the current light mode; the light mode includes a high-beam mode and a low-beam mode; If so, the driver is prompted to switch the light mode and the light mode is controlled to switch.
2. The method according to claim 1, characterized in that Determining whether to switch the light mode according to the front vehicle information, the same-direction distance threshold and the current light mode includes: Determining whether the preceding vehicle is a vehicle traveling in the same direction according to the relative direction in the preceding vehicle information; If yes, determining whether the lateral distance in the front vehicle information is less than a preset lateral distance threshold; If so, determine whether to switch the lighting mode according to the current lighting mode, the inter-vehicle distance in the front vehicle information and the same-direction distance threshold.
3. The method according to claim 2, characterized in that After determining whether the vehicle is a vehicle traveling in the same direction according to the relative direction in the front vehicle information, the method further includes: If not, the maximum value of the preset opposite distance threshold and the same-direction distance threshold is used as the target distance threshold; When the inter-vehicle distance in the front vehicle information is less than the target distance threshold and the current light mode is the high-beam mode, it is determined to switch the light mode.
4. The method according to claim 1, characterized in that The determining, according to the lighting environment information, a same-direction distance threshold, includes: A same-direction distance threshold is determined based on the street lamp lighting intensity and visibility, as well as a lighting intensity weight corresponding to the street lamp lighting intensity and a visibility weight corresponding to the visibility.
5. The method according to claim 1, characterized in that The method further comprises: The light intensity information is obtained through the light sensor, and whether to turn off the light is determined according to the light intensity information.
6. The method according to claim 1, characterized in that The method further comprises: Get information about the road ahead; Determining whether the road ahead is a preset switching road based on the road ahead information; the preset switching road includes at least one of a sharp bend, a slope, an arch bridge, a crosswalk, or an intersection without traffic lights; If so, the driver is prompted to cycle through the lighting modes and the lighting modes are controlled to cycle through the modes.
7. A high and low beam automatic switching device, characterized in that: include: An information acquisition module is used to acquire lighting environment information and front vehicle information; A same-direction distance threshold determination module, used to determine the same-direction distance threshold according to the lighting environment information; A light mode determination module, used to determine whether to switch the light mode according to the preceding vehicle information, the same-direction distance threshold and the current light mode; the light mode includes a high-beam mode and a low-beam mode; The lighting mode switching module is used to prompt the driver to switch the lighting mode if so, and control the lighting mode to switch.
8. 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 program, the method for automatically switching between high and low beams as described in any one of claims 1-6 is implemented.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method for automatically switching between high and low beams as described in any one of claims 1 to 6 is implemented.
10. A computer program product, characterized in that The computer program product comprises a computer program, and when the computer program is executed by a processor, the computer program implements the method for automatically switching between high and low beams according to any one of claims 1 to 6.