Fog lamp control method and device, electronic equipment and storage medium
By obtaining atmospheric particle concentration and vehicle driving environment images, comprehensively determining the target air visibility information and adjusting the fog lamp brightness, the problem of inaccurate adjustment of fog lamp brightness in the prior art is solved, and driving safety is improved.
Patent Information
- Application Number
- CN202510321574.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-18
- Publication Date
- 2025-05-09
AI Technical Summary
The existing fog lamp control schemes have the problem of inaccurate fog lamp brightness adjustment, which leads to the impact of driving safety in heavy fog or low visibility environments.
By obtaining the atmospheric particle concentration and vehicle driving environment images, target air visibility information is comprehensively determined, and the fog lamp pulse width modulation duty cycle is determined based on this information, so as to accurately adjust the fog lamp brightness.
It improves the accuracy of air visibility and improves the accuracy of fog lamp brightness adjustment, thereby enhancing driver visibility and driving safety.
Smart Images

Figure CN119953268A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of intelligent driving technology, and in particular to a fog lamp control method, device, electronic equipment and storage medium. Background Art
[0002] During vehicle operation, a variety of different environmental conditions are involved. When encountering heavy fog or low visibility of the outside air, in order to improve driving safety, it is necessary to turn on the fog lights while driving.
[0003] At present, the most common way to turn on fog lights is that the driver turns them on manually according to the visibility of the external environment. However, manual operation during driving can easily distract the driver's attention and cause safety hazards when turning or when there are vehicles around. In addition, there is also a method of determining the visibility level based on the image of the vehicle's external environment, and then adjusting the brightness of the fog lights based on the visibility level.
[0004] In the process of implementing the present invention, it is found that there are at least the following technical problems in the prior art: the existing fog lamp control solution has the problem of inaccurate fog lamp brightness adjustment. Summary of the invention
[0005] The present invention provides a fog lamp control method, device, electronic equipment and storage medium to achieve accurate adjustment of fog lamp brightness.
[0006] According to one aspect of the present invention, there is provided a fog lamp control method, comprising:
[0007] Obtain images of atmospheric particle concentration and vehicle driving environment;
[0008] Determine target air visibility information based on atmospheric particle concentration and vehicle driving environment image;
[0009] When the target air visibility information satisfies the fog lamp turning-on condition, a fog lamp pulse width modulation duty cycle corresponding to the target air visibility information is determined, and the brightness of the fog lamp is adjusted based on the fog lamp pulse width modulation duty cycle.
[0010] According to another aspect of the present invention, there is provided a fog lamp control device, comprising:
[0011] An information acquisition module is used to obtain atmospheric particle concentration and vehicle driving environment images;
[0012] A visibility determination module, used to determine target air visibility information based on atmospheric particle concentration and vehicle driving environment image;
[0013] The fog lamp brightness adjustment module is used to determine the fog lamp pulse width modulation duty cycle corresponding to the target air visibility information when the target air visibility information meets the fog lamp turning on condition, and adjust the brightness of the fog lamp based on the fog lamp pulse width modulation duty cycle.
[0014] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:
[0015] at least one processor;
[0016] and a memory communicatively coupled to the at least one processor;
[0017] The memory stores a computer program executable 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 fog lamp control method described in any embodiment of the present invention.
[0018] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the fog lamp control method described in any embodiment of the present invention when executed.
[0019] The technical solution of the embodiment of the present invention obtains the atmospheric particle concentration and the vehicle driving environment image, determines the target air visibility information based on the atmospheric particle concentration and the vehicle driving environment image, determines the fog light pulse width modulation duty cycle corresponding to the target air visibility information when the target air visibility information meets the fog light turning-on condition, and adjusts the fog light brightness based on the fog light pulse width modulation duty cycle. The above technical solution can effectively improve the accuracy of determining the air visibility by comprehensively determining the target air visibility information through the atmospheric particle concentration and the vehicle driving environment image, thereby improving the accuracy of adjusting the fog light brightness.
[0020] 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
[0021] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative work.
[0022] Figure 1is a flow chart of a fog lamp control method provided according to Embodiment 1 of the present invention;
[0023] Figure 2 is a flow chart of a fog lamp control method provided according to Embodiment 2 of the present invention;
[0024] Figure 3 is a flow chart of a fog lamp control method provided according to Embodiment 3 of the present invention;
[0025] Figure 4 is a flow chart of a fog lamp control method provided according to a fourth embodiment of the present invention;
[0026] Figure 5 is a flow chart of a fog lamp control method provided according to an embodiment of the present invention;
[0027] Figure 6 is a structural schematic diagram of a fog lamp control device provided according to Embodiment 5 of the present invention;
[0028] Figure 7 It is a structural schematic diagram of an electronic device for implementing the fog lamp control method according to an embodiment of the present invention. DETAILED DESCRIPTION
[0029] 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.
[0030] 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 interchangeable 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 of their variations 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. The acquisition, storage, use, processing, etc. of data in the technical solution of this application comply with the relevant provisions of national laws and regulations.
[0031] Embodiment 1
[0032] Figure 1 This is a flowchart of a fog lamp control method provided in the first embodiment of the present invention. This embodiment is applicable to the case of automatic brightness adjustment of vehicle fog lamps. The method can be executed by a fog lamp control device, which can be implemented in the form of hardware and / or software. The fog lamp control device can be configured in electronic devices such as vehicle terminals. The vehicle terminals include infrared thermal imagers, cameras, atmospheric particle concentration sensors, and controllers. The controllers are electrically connected to the infrared thermal imagers, cameras, and atmospheric particle concentration sensors, respectively. The vehicle terminals can be set in small, medium, or large vehicles. Figure 1 As shown, the method includes:
[0033] S110, obtaining atmospheric particle concentration and vehicle driving environment images.
[0034] The atmospheric particle concentration refers to the concentration of particulate matter in the surrounding atmosphere during vehicle driving. The vehicle driving environment image refers to the image of the surrounding environment during vehicle driving, which can be an image of the front field of view of the cab or an image taken in other directions.
[0035] Specifically, the atmospheric particle concentration is collected by an atmospheric particle concentration sensor disposed in the air intake duct of the vehicle; and the vehicle driving environment image is collected by a camera disposed above the vehicle cab.
[0036] S120: Determine target air visibility information based on the atmospheric particle concentration and the vehicle driving environment image.
[0037] The target air visibility information refers to the air visibility outside the vehicle before the fog lights are turned on, which may be an air visibility level or other data for measuring air visibility.
[0038] In the embodiments of the present disclosure, the air visibility corresponding to the atmospheric particle concentration can be obtained by table lookup or function calculation, and the air visibility corresponding to the vehicle driving environment image can be obtained by image recognition, table lookup or function calculation. Then, the air visibility corresponding to the atmospheric particle concentration and the air visibility corresponding to the vehicle driving environment image are comprehensively calculated to obtain the target air visibility information.
[0039] It should be noted that the accuracy of air visibility can be effectively improved by comprehensively determining the target air visibility information through atmospheric particle concentration and vehicle driving environment images.
[0040] S130. When the target air visibility information satisfies a fog lamp turning-on condition, determine a fog lamp pulse width modulation duty cycle corresponding to the target air visibility information, and adjust the brightness of the fog lamp based on the fog lamp pulse width modulation duty cycle.
[0041] Among them, the fog lamp turning-on condition may be that the target air visibility information is greater than the air visibility threshold. The duty cycle of the fog lamp pulse width modulation refers to the duty cycle of the fog lamp in the pulse width modulation (PWM). The duty cycle refers to the proportion of the time occupied by the high level within one pulse period.
[0042] Specifically, the duty cycle of the fog lamp pulse width modulation corresponding to the target air visibility information can be determined through a preset air visibility - fog lamp pulse width modulation duty cycle mapping relationship. Among them, the preset air visibility - fog lamp pulse width modulation duty cycle mapping relationship includes multiple air visibilities and the duty cycle of the fog lamp pulse width modulation corresponding to each air visibility.
[0043] Based on the above embodiments, optionally, adjusting the brightness of the fog lamp based on the duty cycle of the fog lamp pulse width modulation includes: when the duty cycle of the fog lamp pulse width modulation is greater than or equal to the peak value of the duty cycle of the fog lamp pulse width modulation, adjusting the brightness of the fog lamp based on the peak value of the duty cycle of the fog lamp pulse width modulation; when the duty cycle of the fog lamp pulse width modulation is less than the peak value of the duty cycle of the fog lamp pulse width modulation, adjusting the brightness of the fog lamp based on the duty cycle of the fog lamp pulse width modulation.
[0044] Among them, the peak value of the duty cycle of the fog lamp pulse width modulation is a preset peak value of the duty cycle.
[0045] It should be noted that by setting the peak value of the duty cycle of the fog lamp pulse width modulation, the duty cycle of the fog lamp pulse width modulation greater than the peak value can be output according to the peak value of the duty cycle of the fog lamp pulse width modulation. The setting logic behind this is that when the duty cycle of the fog lamp pulse width modulation is equal to the peak value of the duty cycle of the fog lamp pulse width modulation, the air visibility is already very low, and there is no need for further step-by-step adjustment. The fog lamp can be directly kept at the highest brightness.
[0046] Exemplarily, when the target air visibility information reaches the air visibility threshold, calculate the duty cycle Ko of the fog lamp pulse width modulation corresponding to the target air visibility information. Determine whether Ko reaches the peak value Kf of the duty cycle of the fog lamp pulse width modulation. When Ko ≥ Kf, adjust the brightness of the fog lamp based on Kf; when Ko < Kf, adjust the brightness of the fog lamp based on Ko.
[0047] In some embodiments, the fog lamp can also be controlled to turn on through manual input, voice commands, or gesture commands.
[0048] Exemplarily, the fog lamp can be controlled to turn on by manually pressing the fog lamp turning-on button, issuing a voice command of "turn on the fog lamp", or showing a user-defined fog lamp turning-on gesture.
[0049] The technical solution of the embodiment of the present invention obtains the atmospheric particle concentration and the vehicle driving environment image, determines the target air visibility information based on the atmospheric particle concentration and the vehicle driving environment image, determines the fog light pulse width modulation duty cycle corresponding to the target air visibility information when the target air visibility information meets the fog light turning-on condition, and adjusts the fog light brightness based on the fog light pulse width modulation duty cycle. The above technical solution can effectively improve the accuracy of determining the air visibility by comprehensively determining the target air visibility information through the atmospheric particle concentration and the vehicle driving environment image, thereby improving the accuracy of adjusting the fog light brightness.
[0050] Embodiment 2
[0051] Figure 2 A flowchart of a fog lamp control method provided in Embodiment 2 of the present invention, the method of this embodiment can be combined with each optional scheme in the fog lamp control method provided in the above embodiment. The fog lamp control method provided in this embodiment is further optimized. Optionally, the target air visibility information is determined based on the atmospheric particle concentration and the vehicle driving environment image, including: determining the first air visibility information corresponding to the atmospheric particle concentration through a preset atmospheric particle concentration-air visibility mapping relationship, wherein the preset atmospheric particle concentration-air visibility mapping relationship includes multiple atmospheric particle concentrations and the air visibility corresponding to each atmospheric particle concentration; extracting features from the vehicle driving environment image to obtain vehicle driving environment features, determining the second air visibility information corresponding to the vehicle driving environment image through a preset vehicle driving environment feature-air visibility mapping relationship, wherein the preset vehicle driving environment feature-air visibility mapping relationship includes multiple vehicle driving environment features and the air visibility corresponding to each vehicle driving environment feature; determining the target air visibility information based on the first air visibility information and the second air visibility information.
[0052] like Figure 2 As shown, the method includes:
[0053] S210: Acquire atmospheric particle concentration and vehicle driving environment images.
[0054] S220. Determine first air visibility information corresponding to the atmospheric particle concentration by using a preset atmospheric particle concentration-air visibility mapping relationship, wherein the preset atmospheric particle concentration-air visibility mapping relationship includes multiple atmospheric particle concentrations and air visibility corresponding to each atmospheric particle concentration.
[0055] The first air visibility information may be an air visibility level or other data for measuring air visibility.
[0056] Exemplarily, the preset atmospheric particle concentration - air visibility mapping relationship can be pre - stored in the controller, and the preset atmospheric particle concentration - air visibility mapping relationship can include:
[0057] If A < atmospheric particle concentration < B, then the air visibility is the first air visibility level;
[0058] If B ≤ atmospheric particle concentration < C, then the air visibility is the second air visibility level;
[0059] If C ≤ atmospheric particle concentration < D, then the air visibility is the third air visibility level.
[0060] When the atmospheric particle concentration is between B and C, the first air visibility information can be the second air visibility level.
[0061] S230. Extract features from the vehicle driving environment image to obtain vehicle driving environment features, and determine the second air visibility information corresponding to the vehicle driving environment image through the preset vehicle driving environment feature - air visibility mapping relationship, where the preset vehicle driving environment feature - air visibility mapping relationship includes multiple vehicle driving environment features and the air visibility corresponding to each vehicle driving environment feature.
[0062] Among them, the vehicle driving environment feature refers to the feature that describes the vehicle driving environment, which can be extracted from the vehicle driving environment image through methods such as convolutional neural network or structural feature extraction. Exemplarily, the vehicle driving environment feature can be image gray - scale features or information such as the extinction coefficient, particle concentration, transmitted light intensity, and initial light intensity corresponding to the image gray - scale features. The second air visibility information can be the air visibility level or other data for measuring air visibility.
[0063] Exemplarily, the preset vehicle driving environment feature - air visibility mapping relationship can be pre - stored in the controller, and the preset vehicle driving environment feature - air visibility mapping relationship can include:
[0064] The vehicle driving environment features of the first type of foggy day correspond to the first air visibility level;
[0065] The vehicle driving environment features of the second type of foggy day correspond to the second air visibility level;
[0066] The vehicle driving environment features of the third type of foggy day correspond to the third air visibility level.
[0067] When the vehicle driving environment feature corresponding to the vehicle driving environment image is the vehicle driving environment feature of the third type of foggy day, the second air visibility information can be the third air visibility level.
[0068] S240. Determine target air visibility information based on the first air visibility information and the second air visibility information.
[0069] Specifically, one of the first air visibility information and the second air visibility information may be selected as the target air visibility information, or an average value of the first air visibility information and the second air visibility information may be selected as the target air visibility information.
[0070] Based on the above embodiment, optionally, the target air visibility information is determined based on the first air visibility information and the second air visibility information, including: if the first air visibility information is less than the second air visibility information, the first air visibility information is determined as the target air visibility information; if the first air visibility information is not less than the second air visibility information, the second air visibility information is determined as the target air visibility information.
[0071] It should be noted that by selecting the smaller of the two air visibility information as the target air visibility information, that is, using the worst visual visibility detection condition as the basis for judging the subsequent fog lamp activation and brightness adjustment, it is possible to avoid the situation where the fog lamp is not bright enough to illuminate the road.
[0072] In some embodiments, if the difference between the first air visibility information and the second air visibility information is greater than a preset visibility threshold, indicating that the difference between the two air visibility calculated by the atmospheric particle concentration and the vehicle driving environment image is too large, and the particle concentration sensor or camera may fail, the fog lamp automatic control system can be turned off and the driver is prompted to manually turn on the fog lamp.
[0073] S250. When the target air visibility information satisfies the fog lamp turning-on condition, determine the fog lamp pulse width modulation duty cycle corresponding to the target air visibility information, and adjust the brightness of the fog lamp based on the fog lamp pulse width modulation duty cycle.
[0074] The technical solution of the embodiment of the present invention determines the first air visibility information corresponding to the atmospheric particle concentration by presetting the atmospheric particle concentration-air visibility mapping relationship, extracts features of the vehicle driving environment image to obtain the vehicle driving environment features, determines the second air visibility information corresponding to the vehicle driving environment image by presetting the vehicle driving environment features-air visibility mapping relationship, and then comprehensively determines the target air visibility information based on the first air visibility information and the second air visibility information, which can effectively improve the accuracy of determining the air visibility, thereby improving the accuracy of adjusting the brightness of the fog lamp.
[0075] Embodiment 3
[0076] Figure 3 A flow chart of a fog lamp control method provided in Embodiment 3 of the present invention, the method of this embodiment can be combined with the various optional schemes in the fog lamp control method provided in the above embodiments. The fog lamp control method provided in this embodiment is further optimized. Optionally, after adjusting the brightness of the fog lamp based on the fog lamp pulse width modulation duty cycle, it also includes: obtaining air visibility information after turning on the fog lamp; when the air visibility information after turning on the fog lamp does not meet the preset field of view visibility condition, increasing the fog lamp pulse width modulation duty cycle, and adjusting the brightness of the fog lamp based on the increased fog lamp pulse width modulation duty cycle.
[0077] like Figure 3 As shown, the method includes:
[0078] S310: Acquire atmospheric particle concentration and vehicle driving environment images.
[0079] S320: Determine target air visibility information based on the atmospheric particle concentration and the vehicle driving environment image.
[0080] S330. When the target air visibility information satisfies the fog lamp turning-on condition, determine the fog lamp pulse width modulation duty cycle corresponding to the target air visibility information, and adjust the brightness of the fog lamp based on the fog lamp pulse width modulation duty cycle.
[0081] S340, obtaining air visibility information after turning on the fog lights; if the air visibility information after turning on the fog lights does not meet the preset field of view visibility condition, increasing the fog light pulse width modulation duty cycle, and adjusting the brightness of the fog lights based on the increased fog light pulse width modulation duty cycle.
[0082] In the disclosed embodiment, the air visibility information after the fog lamp is turned on can be calculated based on the currently detected atmospheric particle concentration and / or the vehicle driving environment image. The preset field of view visibility condition refers to the judgment condition of whether the field of view meets the visibility requirement after the fog lamp is turned on. For example, the preset field of view visibility condition can be that the air visibility information after the fog lamp is turned on is greater than or equal to the visibility threshold.
[0083] Exemplarily, if the air visibility information after the fog lights are turned on is greater than or equal to the visibility threshold, the current fog light brightness is maintained; if the air visibility information after the fog lights are turned on is less than the visibility threshold, the fog light pulse width modulation duty cycle Ko is increased by ΔK, where ΔK is the duty cycle change, and the brightness of the fog lights is adjusted based on the increased fog light pulse width modulation duty cycle until the preset field of view visibility condition is met or the fog light pulse width modulation reaches the fog light pulse width modulation duty cycle peak value Kf.
[0084] It should be noted that when the air visibility information after turning on the fog lights does not meet the preset field of view visibility conditions, increasing the fog light pulse width modulation duty cycle will automatically increase the fog light brightness, thereby improving the driver's visibility and thus improving driving safety.
[0085] Embodiment 4
[0086] Figure 4 A flow chart of a fog lamp control method provided for the fourth embodiment of the present invention, the method of this embodiment can be combined with the various optional schemes in the fog lamp control method provided in the above embodiments. The fog lamp control method provided in this embodiment is further optimized. Optionally, after the brightness of the fog lamp is adjusted based on the fog lamp pulse width modulation duty cycle, it includes: collecting infrared thermal imaging of the vehicle driving environment through an infrared thermal imager; determining a vehicle meeting detection result based on the infrared thermal imaging of the vehicle driving environment; when the vehicle meeting detection result is meeting in progress, reducing the fog lamp pulse width modulation duty cycle or turning off the fog lamp; when the vehicle meeting detection result is meeting ended, restoring the duty cycle to the fog lamp pulse width modulation duty cycle corresponding to the target air visibility information.
[0087] like Figure 4 As shown, the method includes:
[0088] S410: Acquire atmospheric particle concentration and vehicle driving environment images.
[0089] S420: Determine target air visibility information based on the atmospheric particle concentration and the vehicle driving environment image.
[0090] S430. When the target air visibility information satisfies the fog lamp turning-on condition, determine the fog lamp pulse width modulation duty cycle corresponding to the target air visibility information, and adjust the brightness of the fog lamp based on the fog lamp pulse width modulation duty cycle.
[0091] S440, collecting infrared thermal images of the vehicle driving environment through an infrared thermal imager; and determining a vehicle meeting detection result based on the infrared thermal images of the vehicle driving environment.
[0092] Specifically, the infrared thermal imaging of the vehicle driving environment is input into the pre-trained vehicle meeting detection model to obtain the vehicle meeting detection result. Among them, the training steps of the vehicle meeting detection model include: obtaining multiple infrared thermal imaging sample images and labels of each infrared thermal imaging sample image, the labels include not meeting, meeting, and meeting, etc.; inputting the infrared thermal imaging sample images into the neural network model to be trained, the neural network model outputs the vehicle meeting prediction result, the model loss is determined based on the vehicle meeting prediction result and the label of the infrared thermal imaging sample image, and then the neural network model parameters are updated based on the model loss until the model training stop condition is met to obtain the vehicle meeting detection model.
[0093] S450. When the vehicle meeting detection result is that the vehicle is meeting, reduce the fog lamp pulse width modulation duty cycle or turn off the fog lamp; when the vehicle meeting detection result is that the vehicle is meeting, restore the duty cycle to the fog lamp pulse width modulation duty cycle corresponding to the target air visibility information.
[0094] It should be noted that when the vehicle is in the state of meeting other vehicles, the fog lights will interfere with the vision of the oncoming driver. By reducing the fog light pulse width modulation duty cycle, the fog light brightness can be reduced, or the fog lights can be turned off, thereby reducing driving risks, especially in the downhill and uphill meeting conditions in foggy weather, the vehicle fog lights are easy to illuminate the oncoming vehicle. After the meeting, the fog light pulse width modulation duty cycle can be adjusted back to the level before the meeting, thereby improving visibility and ensuring driving safety.
[0095] For example, Figure 5 Flow chart of a fog lamp control method provided by an embodiment of the present invention. Figure 5As shown, the driver operation module determines whether the fog lamp is turned on by manual input, voice command or gesture command. If yes, the fog lamp is turned on based on the peak value Kf of the fog lamp pulse width modulation duty cycle. If no, the driving environment monitoring module collects the atmospheric particle concentration through the atmospheric particle concentration sensor set in the vehicle's air intake duct, and collects the vehicle driving environment image through the camera set above the vehicle cab. Further, the controller module calculates the target air visibility information based on the atmospheric particle concentration and the vehicle driving environment image. It is determined whether the target air visibility information reaches the fog lamp opening threshold. If yes, the fog lamp pulse width modulation duty cycle Ko corresponding to the target air visibility information is determined. If no, the fog lamp control method is terminated. Further, it is determined whether the fog lamp pulse width modulation duty cycle Ko reaches the fog lamp pulse width modulation duty cycle peak value Kf. If yes, the fog lamp is turned on based on the fog lamp pulse width modulation duty cycle peak value Kf by the fog lamp adjustment module. If no, the fog lamp is turned on based on Ko by the fog lamp adjustment module. Further, the driving environment monitoring module determines whether the fog lamp is automatically turned on by the controller. If so, the camera captures the vehicle driving environment image after the fog lamp is turned on and the infrared thermal imager collects the infrared thermal image of the vehicle driving environment. If not, the fog lamp control method is terminated. Further, the controller module determines the air visibility information after the fog lamp is turned on based on the vehicle driving environment image after the fog lamp is turned on; if the air visibility information after the fog lamp is turned on does not meet the preset field of view visibility condition, the fog lamp pulse width modulation duty cycle Ko is increased by ΔK, and the fog lamp brightness is adjusted by the fog lamp adjustment module based on the increased fog lamp pulse width modulation duty cycle. If the air visibility information after the fog lamp is turned on meets the preset field of view visibility condition, the fog lamp control method is terminated. Furthermore, the controller module determines the vehicle oncoming detection result based on infrared thermal imaging of the vehicle's driving environment. When the vehicle oncoming detection result is that the vehicle is meeting, the fog lamp adjustment module reduces the fog lamp pulse width modulation duty cycle or turns off the fog lamp; when the vehicle oncoming detection result is that the vehicle is meeting, the fog lamp adjustment module restores the fog lamp brightness to the state before the meeting.
[0096] The present invention aims to provide a fog lamp control method, which controls the fog lamp through a driver operation module, a driving environment monitoring module, a controller module and a fog lamp adjustment module, thereby ensuring that the driver does not adjust the fog lamp while driving when facing a foggy driving environment, thereby improving driving safety and reducing the incidence of traffic accidents.
[0097] Embodiment 5
[0098] Figure 6 This is a schematic diagram of the structure of a fog lamp control device provided in Embodiment 5 of the present invention. Figure 6 As shown, the device comprises:
[0099] The information acquisition module 510 is used to acquire the atmospheric particle concentration and the vehicle driving environment image;
[0100] A visibility determination module 520, for determining target air visibility information based on atmospheric particle concentration and a vehicle driving environment image;
[0101] The fog lamp brightness adjustment module 530 is used to determine the fog lamp pulse width modulation duty cycle corresponding to the target air visibility information when the target air visibility information meets the fog lamp turning-on condition, and adjust the brightness of the fog lamp based on the fog lamp pulse width modulation duty cycle.
[0102] In some optional implementations, the information acquisition module 510 may be specifically used to:
[0103] The atmospheric particle concentration is obtained by collecting the atmospheric particle concentration sensor;
[0104] The vehicle driving environment image is obtained through camera collection.
[0105] In some optional implementations, the visibility determination module 520 includes:
[0106] a first air visibility information determining unit, configured to determine first air visibility information corresponding to the atmospheric particle concentration by using a preset atmospheric particle concentration-air visibility mapping relationship, wherein the preset atmospheric particle concentration-air visibility mapping relationship includes a plurality of atmospheric particle concentrations and air visibility corresponding to each atmospheric particle concentration;
[0107] a second air visibility information determination unit, configured to extract features from the vehicle driving environment image to obtain vehicle driving environment features, and determine second air visibility information corresponding to the vehicle driving environment image by using a preset vehicle driving environment feature-air visibility mapping relationship, wherein the preset vehicle driving environment feature-air visibility mapping relationship includes a plurality of vehicle driving environment features and air visibility corresponding to each vehicle driving environment feature;
[0108] The target air visibility information determining unit is configured to determine target air visibility information based on the first air visibility information and the second air visibility information.
[0109] In some optional implementations, the target air visibility information determination unit may be specifically used to:
[0110] If the first air visibility information is less than the second air visibility information, determining the first air visibility information as the target air visibility information;
[0111] If the first air visibility information is not less than the second air visibility information, the second air visibility information is determined as the target air visibility information.
[0112] In some optional implementations, the fog lamp brightness adjustment module 530 may be specifically used for:
[0113] When the fog lamp pulse width modulation duty cycle is greater than or equal to the fog lamp pulse width modulation duty cycle peak value, the brightness of the fog lamp is adjusted based on the fog lamp pulse width modulation duty cycle peak value; when the fog lamp pulse width modulation duty cycle is less than the fog lamp pulse width modulation duty cycle peak value, the brightness of the fog lamp is adjusted based on the fog lamp pulse width modulation duty cycle.
[0114] In some optional implementations, the fog lamp control device includes:
[0115] The first duty cycle adjustment module is used to obtain air visibility information after the fog lights are turned on; when the air visibility information after the fog lights are turned on does not meet the preset field of view visibility conditions, the fog lights pulse width modulation duty cycle is increased, and the brightness of the fog lights is adjusted based on the increased fog lights pulse width modulation duty cycle.
[0116] In some optional implementations, the fog lamp control device includes:
[0117] The second duty cycle adjustment module is used to collect infrared thermal images of the vehicle driving environment through an infrared thermal imager; determine the vehicle meeting detection result based on the infrared thermal images of the vehicle driving environment; when the vehicle meeting detection result is meeting in progress, reduce the fog lamp pulse width modulation duty cycle or turn off the fog lamp; when the vehicle meeting detection result is meeting ended, restore the duty cycle to the fog lamp pulse width modulation duty cycle corresponding to the target air visibility information.
[0118] The fog lamp control device provided by the embodiment of the present invention can execute the fog lamp control method provided by any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.
[0119] Embodiment 6
[0120] Figure 7A 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 assistants, 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.
[0121] like Figure 7 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. The I / O interface 15 is also connected to the bus 14.
[0122] 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.
[0123] 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 fog lamp control method, which includes:
[0124] Obtain images of atmospheric particle concentration and vehicle driving environment;
[0125] Determine target air visibility information based on atmospheric particle concentration and vehicle driving environment image;
[0126] When the target air visibility information satisfies the fog lamp turning-on condition, a fog lamp pulse width modulation duty cycle corresponding to the target air visibility information is determined, and the brightness of the fog lamp is adjusted based on the fog lamp pulse width modulation duty cycle.
[0127] In some embodiments, the fog lamp control method 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 fog lamp control method described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to perform the fog lamp control method in any other appropriate manner (e.g., by means of firmware).
[0128] 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), system-on-chips (SOCs), complex 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.
[0129] 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.
[0130] 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.
[0131] 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).
[0132] 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.
[0133] 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.
[0134] 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.
[0135] 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 fog lamp control method, characterized in that: include: Obtain images of atmospheric particle concentration and vehicle driving environment; Determine target air visibility information based on atmospheric particle concentration and vehicle driving environment image; When the target air visibility information satisfies the fog lamp turning-on condition, a fog lamp pulse width modulation duty cycle corresponding to the target air visibility information is determined, and the brightness of the fog lamp is adjusted based on the fog lamp pulse width modulation duty cycle.
2. The method according to claim 1, characterized in that The determining of target air visibility information based on atmospheric particle concentration and vehicle driving environment image includes: Determining first air visibility information corresponding to the atmospheric particle concentration by using a preset atmospheric particle concentration-air visibility mapping relationship, wherein the preset atmospheric particle concentration-air visibility mapping relationship includes multiple atmospheric particle concentrations and air visibility corresponding to each atmospheric particle concentration; Extracting features from the vehicle driving environment image to obtain vehicle driving environment features, and determining second air visibility information corresponding to the vehicle driving environment image by using a preset vehicle driving environment feature-air visibility mapping relationship, wherein the preset vehicle driving environment feature-air visibility mapping relationship includes a plurality of vehicle driving environment features and air visibility corresponding to each vehicle driving environment feature; Target air visibility information is determined based on the first air visibility information and the second air visibility information.
3. The method according to claim 2, characterized in that The determining target air visibility information based on the first air visibility information and the second air visibility information includes: If the first air visibility information is less than the second air visibility information, determining the first air visibility information as the target air visibility information; If the first air visibility information is not less than the second air visibility information, the second air visibility information is determined as the target air visibility information.
4. The method according to claim 1, characterized in that: The step of adjusting the brightness of the fog lamp based on the fog lamp pulse width modulation duty cycle includes: When the fog lamp pulse width modulation duty cycle is greater than or equal to the fog lamp pulse width modulation duty cycle peak value, adjusting the brightness of the fog lamp based on the fog lamp pulse width modulation duty cycle peak value; When the fog lamp pulse width modulation duty cycle is less than the fog lamp pulse width modulation duty cycle peak value, the brightness of the fog lamp is adjusted based on the fog lamp pulse width modulation duty cycle.
5. The method according to claim 1, characterized in that The step of obtaining the atmospheric particle concentration and the vehicle driving environment image comprises: The atmospheric particle concentration is obtained by collecting the atmospheric particle concentration sensor; The vehicle driving environment image is obtained through camera collection.
6. The method according to claims 1-5, characterized in that: After adjusting the brightness of the fog lamp based on the fog lamp pulse width modulation duty cycle, the method further includes: Get air visibility information after turning on the fog lights; When the air visibility information after turning on the fog lamp does not meet the preset field of view visibility condition, the fog lamp pulse width modulation duty cycle is increased, and the brightness of the fog lamp is adjusted based on the increased fog lamp pulse width modulation duty cycle.
7. The method according to claims 1-5, characterized in that: After the brightness of the fog lamp is adjusted based on the fog lamp pulse width modulation duty cycle, the method further comprises: Collect infrared thermal images of the vehicle's driving environment through an infrared thermal imager; Determining a vehicle oncoming vehicle detection result based on infrared thermal imaging of the vehicle driving environment; When the vehicle oncoming detection result is oncoming, reducing the fog lamp pulse width modulation duty cycle or turning off the fog lamp; When the vehicle meeting detection result is that the meeting is over, the duty cycle is restored to the fog lamp pulse width modulation duty cycle corresponding to the target air visibility information.
8. A fog lamp control device, characterized in that: include: An information acquisition module is used to obtain atmospheric particle concentration and vehicle driving environment images; A visibility determination module, used to determine target air visibility information based on atmospheric particle concentration and vehicle driving environment image; The fog lamp brightness adjustment module is used to determine the fog lamp pulse width modulation duty cycle corresponding to the target air visibility information when the target air visibility information meets the fog lamp turning on condition, and adjust the brightness of the fog lamp based on the fog lamp pulse width modulation duty cycle.
9. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively coupled to the at least one processor; The memory stores a computer program executable 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 fog lamp control method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the fog lamp control method according to any one of claims 1 to 7 when executed.
Citation Information
Patent Citations
Method and device for controlling fog lamp and automobile
CN104608684A
Vehicle lamp control method and device, vehicle and storage medium
CN111688569A
Special vehicle auxiliary driving method and device based on deep learning, and storage medium
CN111753741A
Vehicle fog lamp control method, device and equipment and storage medium
CN114670745A
Vehicle fog lamp control method, vehicle fog lamp control device and vehicle
CN115214455A