Fog lamp state control method and device, computer equipment, readable storage medium and program product

By acquiring infrared thermal imaging and visible light camera images in real time, calculating comprehensive visibility, and automatically controlling vehicle fog lights, it solves the problem of manual operation of fog lights in the existing technology, and improves driving safety and dynamic brightness adjustment.

CN118528904APending Publication Date: 2024-08-23FAW JIEFANG AUTOMOTIVE CO
View PDF 0 Cites 3 Cited by

Patent Information

Application Number
CN202410673539.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-28
Publication Date
2024-08-23

AI Technical Summary

Technical Problem

Existing vehicle fog lights require the driver to manually turn on and off, and cannot achieve automatic control, affecting driving safety.

Method used

By acquiring images collected by infrared thermal imaging cameras and visible light cameras in real time, the comprehensive visibility is calculated based on the image clarity evaluation model, the fog lights are automatically controlled on and off, and the brightness is adjusted according to the visibility.

Benefits of technology

It realizes the automatic opening and closing of fog lights and dynamically adjusts the brightness according to the environment outside the vehicle, which improves vehicle driving safety and reduces the driver's operating burden.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118528904A
    Figure CN118528904A
Patent Text Reader

Abstract

The invention relates to a fog lamp state control method and device, computer equipment, a computer readable storage medium and a computer program product. The method comprises the following steps: for a target scene outside a vehicle, acquiring a first vehicle exterior image acquired by an infrared thermal imaging camera and a second vehicle exterior image acquired by a visible light camera in real time; based on an image definition evaluation model, first definition corresponding to the first vehicle exterior image and second definition corresponding to the second vehicle exterior image are obtained; obtaining the comprehensive definition of the target scene based on the first definition and the second definition, and obtaining the comprehensive visibility of the target scene based on the comprehensive definition; and controlling the state of the vehicle fog lamp based on the comprehensive visibility, the first visibility threshold value and the second visibility threshold value. According to the method provided by the invention, the fog lamp can be automatically turned on and turned off, and the brightness of the fog lamp is adjusted according to the visibility condition.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of vehicle lighting control, and in particular to a fog lamp state control method, device, computer equipment, computer-readable storage medium and computer program product. Background Art

[0002] With the improvement of intelligence, vehicles can now automatically turn on and off the low beam and automatically switch between high and low beam, but the turning on and off of the fog lights still needs to be done manually by the driver. Summary of the invention

[0003] Based on this, it is necessary to provide a fog lamp state control method, device, computer equipment, computer readable storage medium and computer program product that can automatically turn on and off the fog lamp to address the above technical problems.

[0004] In a first aspect, the present application provides a fog lamp state control method, the method comprising:

[0005] For a target scene outside the vehicle, a first image outside the vehicle captured by an infrared thermal imaging camera and a second image outside the vehicle captured by a visible light camera are acquired in real time;

[0006] Based on an image clarity evaluation model, obtaining a first clarity corresponding to the first vehicle exterior image and a second clarity corresponding to the second vehicle exterior image;

[0007] Based on the first clarity and the second clarity, obtaining a comprehensive clarity of the target scene, and based on the comprehensive clarity, obtaining a comprehensive visibility of the target scene;

[0008] Based on the comprehensive visibility, the first visibility threshold, and the second visibility threshold, a state of a fog lamp of the vehicle is controlled.

[0009] In one embodiment, acquiring the comprehensive clarity of the target scene based on the first clarity and the second clarity includes:

[0010] Obtaining a first weight value corresponding to the first definition and a second weight value corresponding to the second definition;

[0011] The comprehensive definition is acquired based on the first weight value, the second weight value, the first definition, and the second definition.

[0012] In one of the embodiments, the obtaining the comprehensive visibility of the target scene based on the comprehensive clarity includes:

[0013] Obtaining a mapping function between clarity and visibility;

[0014] Based on the mapping function, the comprehensive visibility corresponding to the comprehensive clarity is obtained.

[0015] In one embodiment, the controlling the state of the vehicle fog lamp based on the comprehensive visibility, the first visibility threshold, and the second visibility threshold comprises:

[0016] When the comprehensive visibility is less than the first visibility threshold, controlling the front fog lamp and the rear fog lamp of the vehicle to be turned on at the same time;

[0017] When the comprehensive visibility is not less than the first visibility threshold and not greater than the second visibility threshold, keeping the current states of the front fog lamp and the rear fog lamp unchanged;

[0018] When the comprehensive visibility is greater than the second visibility threshold, the front fog lamp and the rear fog lamp are controlled to be in an off state at the same time.

[0019] In one embodiment, the method further comprises:

[0020] Dividing the visibility range less than the first visibility threshold into a plurality of visibility intervals, each visibility interval corresponding to a level of fog lamp brightness;

[0021] When the comprehensive visibility is less than the first visibility threshold, determining a target visibility interval in which the comprehensive visibility is located;

[0022] The brightness of the front fog lamp and the rear fog lamp is adjusted to the fog lamp brightness corresponding to the target visibility range.

[0023] In one embodiment, before acquiring in real time a first image outside the vehicle captured by an infrared thermal imaging camera and a second image outside the vehicle captured by a visible light camera for a target scene outside the vehicle, the method further includes:

[0024] Get the current light intensity sent by the sunlight and rain sensor;

[0025] When the current light intensity is greater than the light intensity threshold, a first image outside the vehicle captured by the infrared thermal imaging camera and a second image outside the vehicle captured by the visible light camera are acquired in real time for the target scene outside the vehicle.

[0026] In a second aspect, the present application further provides a fog lamp state control device, the device comprising:

[0027] A first acquisition module is used to acquire, in real time, a first image outside the vehicle acquired by the infrared thermal imaging camera and a second image outside the vehicle acquired by the visible light camera for a target scene outside the vehicle;

[0028] A second acquisition module, configured to acquire a first clarity corresponding to the first vehicle exterior image and a second clarity corresponding to the second vehicle exterior image based on an image clarity evaluation model;

[0029] a third acquisition module, configured to acquire a comprehensive clarity of the target scene based on the first clarity and the second clarity, and acquire a comprehensive visibility of the target scene based on the comprehensive clarity;

[0030] The control module is used to control the state of the vehicle fog lamp based on the comprehensive visibility, the first visibility threshold, and the second visibility threshold.

[0031] In a third aspect, the present application further provides a computer device, which includes a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the method in any one of the above embodiments when executing the computer program.

[0032] In a fourth aspect, the present application further provides a computer-readable storage medium, wherein a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the method in any one of the above embodiments are implemented.

[0033] In a fifth aspect, the present application further provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the steps of the method in any one of the above embodiments are implemented.

[0034] The above-mentioned fog lamp state control method, device, computer equipment, computer-readable storage medium and computer program product, for the target scene outside the vehicle, obtains in real time a first vehicle-exterior image captured by an infrared thermal imaging camera and a second vehicle-exterior image captured by a visible light camera; based on the image clarity evaluation model, obtains a first clarity corresponding to the first vehicle-exterior image and a second clarity corresponding to the second vehicle-exterior image; based on the first clarity and the second clarity, obtains the comprehensive clarity of the target scene, and based on the comprehensive clarity, obtains the comprehensive visibility of the target scene; based on the comprehensive visibility, the first visibility threshold, and the second visibility threshold, controls the state of the vehicle fog lamp. The method provided in the present application can automatically turn on and off the fog lamp, and adjust the brightness of the fog lamp according to the visibility conditions. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the drawings required for use in the embodiments of the present application or related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0036] FIG1 is a diagram showing an application environment of a fog lamp state control method according to an embodiment;

[0037] FIG2 is a schematic flow chart of a fog lamp state control method in one embodiment;

[0038] FIG3 is a schematic diagram of a flow chart of a comprehensive definition acquisition method in one embodiment;

[0039] FIG4 is a schematic flow chart of a fog lamp state control method in another embodiment;

[0040] FIG5 is a structural block diagram of a fog lamp state control device in one embodiment;

[0041] FIG. 6 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0042] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0043] The fog lamp state control method provided in the embodiment of the present application can be applied to the application environment shown in FIG1. ​​FIG1 includes an infrared thermal imaging camera 102, a vehicle-side controller 104, a visible light camera 106, and a fog lamp 108. The vehicle-side controller 104 obtains the vehicle-exterior images captured by the infrared thermal imaging camera 102 and the visible light camera 106, and controls the state of the fog lamp 108 based on the vehicle-exterior images. The fog lamp 108 includes a front fog lamp and a rear fog lamp.

[0044] In an exemplary embodiment, as shown in FIG2 , a fog lamp state control method is provided, which is described by taking the method applied to the vehicle-side controller in FIG1 as an example, and includes the following steps 202 to 208. Among them:

[0045] S202 . For a target scene outside the vehicle, obtain in real time a first image outside the vehicle captured by an infrared thermal imaging camera and a second image outside the vehicle captured by a visible light camera.

[0046] Among them, the infrared thermal imaging camera and the visible light camera are installed at the front end of the vehicle, and their positions are as close as possible to obtain similar field of view angles, which facilitates the comparison of images obtained by the two.

[0047] S204 . Based on the image clarity evaluation model, obtain a first clarity corresponding to the first image outside the vehicle and a second clarity corresponding to the second image outside the vehicle.

[0048] Among them, the image clarity assessment model is a mathematical model used to quantify image clarity. It evaluates the quality of the image through a series of indicators and algorithms. These indicators and algorithms can reflect the degree of detail, noise level, contrast and overall visual effect in the image.

[0049] S206: Acquire a comprehensive clarity of the target scene based on the first clarity and the second clarity, and acquire a comprehensive visibility of the target scene based on the comprehensive clarity.

[0050] Among them, a first weight value corresponding to the first clarity and a second weight value corresponding to the second clarity can be obtained, and a comprehensive clarity can be obtained based on the first weight value, the second weight value, the first clarity, and the second clarity, and based on the mapping function between clarity and visibility, the comprehensive visibility of the target scene can be obtained; the clarity difference between the first clarity and the second clarity can also be used as the comprehensive clarity. In fog, haze, rain, snow, dust and other environments, the lower the visibility, the blurrier the second image captured by the visible light camera, while the image captured by the infrared thermal imaging camera is basically the same as the first image captured in clear weather. Therefore, the visibility of the target scene can be determined by the clarity difference between the first image and the second image. Specifically, there is a mapping relationship between the clarity difference and the visibility. The larger the clarity difference, the lower the visibility. The corresponding visibility can be determined based on this mapping relationship and the clarity difference.

[0051] S208: Control the state of the vehicle fog lamp based on the comprehensive visibility, the first visibility threshold, and the second visibility threshold.

[0052] Among them, the status of the vehicle fog lights includes an on state and an off state, and the on state includes multiple brightness states.

[0053] In the above fog lamp state control method, for the target scene outside the vehicle, a first image outside the vehicle captured by an infrared thermal imaging camera and a second image outside the vehicle captured by a visible light camera are acquired in real time; based on the image clarity evaluation model, a first clarity corresponding to the first image outside the vehicle and a second clarity corresponding to the second image outside the vehicle are acquired; based on the first clarity and the second clarity, the comprehensive clarity of the target scene is acquired, and based on the comprehensive clarity, the comprehensive visibility of the target scene is acquired; based on the comprehensive visibility, the first visibility threshold, and the second visibility threshold, the state of the vehicle fog lamp is controlled. The method provided in the present application can automatically turn on and off the fog lamp, and adjust the brightness of the fog lamp according to the visibility conditions.

[0054] In some embodiments, as shown in FIG3 , obtaining the comprehensive clarity of the target scene based on the first clarity and the second clarity includes:

[0055] S302: Obtain a first weight value corresponding to the first definition and a second weight value corresponding to the second definition.

[0056] S304: Obtain comprehensive clarity based on the first weight value, the second weight value, the first clarity, and the second clarity.

[0057] The product between the first weight value and the first definition and the product between the second weight value and the second definition are calculated respectively, and the sum of the two products is determined as the comprehensive definition.

[0058] In this embodiment, the comprehensive clarity is obtained based on the first weight value, the second weight value, the first clarity, and the second clarity, so that the determined comprehensive clarity is more accurate, thereby making the subsequent control of the vehicle fog lamp more accurate.

[0059] In some embodiments, obtaining the comprehensive visibility of the target scene based on the comprehensive clarity includes: obtaining a mapping function between clarity and visibility; and obtaining the comprehensive visibility corresponding to the comprehensive clarity based on the mapping function.

[0060] The mapping function between clarity and visibility is a mathematical model that describes the relationship between image clarity and visibility. This mapping function is often used in the field of image processing and computer vision to evaluate and optimize the quality of an image under given visibility conditions, or conversely, to predict the possible visibility level based on the clarity of the image.

[0061] In this embodiment, based on the mapping function, the comprehensive visibility corresponding to the comprehensive clarity is obtained, so that the determined visibility is more accurate.

[0062] In some embodiments, the state of the vehicle's fog lights is controlled based on the comprehensive visibility, the first visibility threshold, and the second visibility threshold, including: when the comprehensive visibility is less than the first visibility threshold, controlling the vehicle's front fog lights and rear fog lights to be in the on state at the same time; when the comprehensive visibility is not less than the first visibility threshold and not greater than the second visibility threshold, keeping the current state of the front fog lights and rear fog lights unchanged; when the comprehensive visibility is greater than the second visibility threshold, controlling the front fog lights and rear fog lights to be in the off state at the same time.

[0063] Among them, when the comprehensive visibility is less than the first visibility threshold, the visibility outside the vehicle is too low, and the front and rear fog lights need to be turned on to increase lighting and improve the recognition of the vehicle itself. When the comprehensive visibility is not less than the first visibility threshold and not greater than the second visibility threshold, in order to avoid frequent changes in the fog light state, the vehicle fog light state is kept unchanged. At this time, the processor does not send fog light related instructions. When the comprehensive visibility is greater than the second visibility threshold, the visibility outside the vehicle is good and the fog lights can be turned off.

[0064] In this embodiment, the state of the fog lamp is controlled based on the comprehensive visibility, so that the state of the fog lamp is more in line with the current environment outside the vehicle, thereby improving the driving safety of the vehicle.

[0065] In some embodiments, the above method also includes: dividing the visibility range less than the first visibility threshold into multiple visibility intervals, each visibility interval corresponding to a level of fog lamp brightness; when the comprehensive visibility is less than the first visibility threshold, determining the target visibility interval in which the comprehensive visibility is located; and adjusting the brightness of the front fog lamps and the rear fog lamps to the fog lamp brightness corresponding to the target visibility interval.

[0066] Among them, the comprehensive visibility can be represented by V0, the first visibility threshold can be represented by Vn, and the visibility range from 0 to Vn includes multiple visibility nodes, which can include V1, V2...Vn-1, Vn. When V0 is less than V1, the visibility outside the vehicle is extremely low, the fog lights should be turned on and adjusted to the maximum brightness, and the vehicle-side controller sends a command to turn on the front and rear fog lights and set the fog light brightness to level 1 (brightest level); when V0 is greater than V1 and less than V2, the vehicle-side controller sends a command to turn on the front and rear fog lights and set the fog light brightness to level 2 (second brightest level); and so on, when V0 is greater than Vn-1 and less than Vn, the vehicle-side controller sends a command to turn on the front and rear fog lights and set the fog light brightness to level n (darkest level).

[0067] In this embodiment, the visibility range less than the first visibility threshold is divided into a plurality of visibility intervals, and the fog lamp state is controlled differently in different intervals, so that the fog lamp brightness is more in line with the current environment outside the vehicle.

[0068] In some embodiments, before obtaining in real time a first image outside the vehicle captured by an infrared thermal imaging camera and a second image outside the vehicle captured by a visible light camera for a target scene outside the vehicle, it also includes: obtaining a current light intensity sent by a sunlight and rainfall sensor; when the current light intensity is greater than a light intensity threshold, obtaining in real time a first image outside the vehicle captured by the infrared thermal imaging camera and a second image outside the vehicle captured by the visible light camera for the target scene outside the vehicle.

[0069] Among them, fog lights are designed for bad weather conditions. They can provide short-distance high-brightness lights to help drivers better identify road conditions in low visibility conditions and transmit their location information to other vehicles. However, when driving at night with good visibility, turning on fog lights will form strong reflections and glare, causing great inconvenience and safety hazards to the car and yourself. At night, in order to avoid the fog lights being turned on by mistake due to reduced visibility at night, the light intensity signal collected by the sunlight and rain sensor is used for pre-judgment.

[0070] In this embodiment, the light intensity signal collected by the sunlight and rainfall sensor is used for pre-determination, which can effectively ensure the driving safety of the vehicle.

[0071] In one embodiment, as shown in FIG4 , another fog lamp state control method is provided, the method comprising the following contents: when the real-time light intensity signal L1 collected by the sunlight and rain sensor is less than or equal to the threshold value L2, it indicates that the current light is dim, the processor does not send the relevant instructions of the fog lamp, and the vehicle does not perform the relevant actions of the fog lamp, and maintains the previous fog lamp state. When the real-time light intensity signal L1 collected by the sunlight and rain sensor is greater than or equal to the threshold value L2, it indicates that the current light is sufficient, and the logic judgment of the automatic switch of the fog lamp can be performed. The clarity of the real-time image outside the vehicle obtained by the infrared thermal imaging camera and the visible light camera is compared by an algorithm, and the real-time visibility V0 outside the vehicle is calculated. Compare the relationship between the real-time visibility V0 outside the vehicle and each threshold value. When V0 is less than V1, the visibility outside the vehicle is extremely low, the fog lights should be turned on and adjusted to the maximum brightness, and the processor sends an instruction to turn on the front and rear fog lights and set the brightness of the fog lights to level 1 (brightest gear); when the real-time visibility V0 outside the vehicle is greater than V1 and less than V2, the processor sends an instruction to turn on the front and rear fog lights and set the brightness of the fog lights to level 2 (second brightest gear); and so on, when the real-time visibility V0 outside the vehicle is greater than Vn-1 and less than Vn, the processor sends an instruction to turn on the front and rear fog lights and set the brightness of the fog lights to level n (darkest gear); when the real-time visibility V0 outside the vehicle is greater than Vn and less than Vn+1, in order to avoid frequent changes in the fog light state, the vehicle fog light state remains unchanged, and the processor does not send fog light related instructions at this time; when the real-time visibility V0 is greater than the threshold Vn+1, the visibility outside the vehicle is good, and the fog lights can be turned off. At this time, the processor sends an instruction to turn off the front and rear fog lights.

[0072] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0073] Based on the same inventive concept, the embodiment of the present application also provides a fog lamp state control device for implementing the fog lamp state control method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more fog lamp state control device embodiments provided below can refer to the limitations of the fog lamp state control method above, and will not be repeated here.

[0074] In an exemplary embodiment, as shown in FIG5 , a fog lamp state control device 500 is provided, comprising: a first acquisition module 501 , a second acquisition module 502 , a third acquisition module 503 and a control module 504 , wherein:

[0075] The first acquisition module 501 is used to acquire, in real time, a first image outside the vehicle captured by the infrared thermal imaging camera and a second image outside the vehicle captured by the visible light camera for a target scene outside the vehicle.

[0076] The second acquisition module 502 is used to acquire a first clarity corresponding to the first external vehicle image and a second clarity corresponding to the second external vehicle image based on an image clarity evaluation model.

[0077] The third acquisition module 503 is used to acquire the comprehensive clarity of the target scene based on the first clarity and the second clarity, and acquire the comprehensive visibility of the target scene based on the comprehensive clarity.

[0078] The control module 504 is used to control the state of the vehicle fog lamp based on the comprehensive visibility, the first visibility threshold, and the second visibility threshold.

[0079] In some embodiments, the third acquisition module 503 is further used to obtain a first weight value corresponding to the first clarity and a second weight value corresponding to the second clarity; and to obtain the comprehensive clarity based on the first weight value, the second weight value, the first clarity, and the second clarity.

[0080] In some embodiments, the third acquisition module 503 is further used to acquire a mapping function between clarity and visibility; and based on the mapping function, acquire the comprehensive visibility corresponding to the comprehensive clarity.

[0081] In some embodiments, the control module 504 is also used to control the front fog lights and the rear fog lights of the vehicle to be in the on state at the same time when the comprehensive visibility is less than the first visibility threshold; to keep the current states of the front fog lights and the rear fog lights unchanged when the comprehensive visibility is not less than the first visibility threshold and not greater than the second visibility threshold; and to control the front fog lights and the rear fog lights to be in the off state at the same time when the comprehensive visibility is greater than the second visibility threshold.

[0082] In some embodiments, the control module 504 is further used to divide the visibility range less than the first visibility threshold into multiple visibility intervals, each visibility interval corresponding to a level of fog lamp brightness; when the comprehensive visibility is less than the first visibility threshold, determine the target visibility interval in which the comprehensive visibility is located; and adjust the brightness of the front fog lamp and the rear fog lamp to the fog lamp brightness corresponding to the target visibility interval.

[0083] In some embodiments, the fog lamp status control device 500 is specifically used to obtain the current light intensity sent by the sunlight and rainfall sensor; when the current light intensity is greater than the light intensity threshold, a first image outside the vehicle captured by the infrared thermal imaging camera and a second image outside the vehicle captured by the visible light camera are acquired in real time for the target scene outside the vehicle.

[0084] Each module in the fog lamp state control device can be implemented in whole or in part by software, hardware or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each module.

[0085] In an exemplary embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be shown in FIG6. The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit, and an input device. The processor, the memory, and the input / output interface are connected via a system bus, and the communication interface, the display unit, and the input device are connected to the system bus via the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner may be implemented through WIFI, a mobile cellular network, near field communication (NFC) or other technologies. When the computer program is executed by the processor, a fog lamp state control method is implemented. The display unit of the computer device is used to form a visually visible picture, which may be a display screen, a projection device, or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the computer device shell, or an external keyboard, touchpad or mouse.

[0086] Those skilled in the art will understand that the structure shown in FIG. 6 is merely a block diagram of a partial structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.

[0087] In an exemplary embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the following steps when executing the computer program: for a target scene outside a vehicle, a first image outside the vehicle captured by an infrared thermal imaging camera and a second image outside the vehicle captured by a visible light camera are acquired in real time; based on an image clarity evaluation model, a first clarity corresponding to the first image outside the vehicle and a second clarity corresponding to the second image outside the vehicle are acquired; based on the first clarity and the second clarity, a comprehensive clarity of the target scene is acquired, and based on the comprehensive clarity, a comprehensive visibility of the target scene is acquired; based on the comprehensive visibility, a first visibility threshold, and a second visibility threshold, a state of a vehicle fog light is controlled.

[0088] In one embodiment, the processor executes a computer program to obtain the comprehensive clarity of the target scene based on the first clarity and the second clarity, including: obtaining a first weight value corresponding to the first clarity and a second weight value corresponding to the second clarity; and obtaining the comprehensive clarity based on the first weight value, the second weight value, the first clarity, and the second clarity.

[0089] In one embodiment, the method of obtaining the comprehensive visibility of the target scene based on the comprehensive clarity implemented when the processor executes a computer program includes: obtaining a mapping function between clarity and visibility; and obtaining the comprehensive visibility corresponding to the comprehensive clarity based on the mapping function.

[0090] In one embodiment, the state of the vehicle fog lights is controlled based on the comprehensive visibility, the first visibility threshold, and the second visibility threshold when the processor executes a computer program, including: when the comprehensive visibility is less than the first visibility threshold, controlling the front fog lights and the rear fog lights of the vehicle to be in the on state at the same time; when the comprehensive visibility is not less than the first visibility threshold and not greater than the second visibility threshold, keeping the current states of the front fog lights and the rear fog lights unchanged; when the comprehensive visibility is greater than the second visibility threshold, controlling the front fog lights and the rear fog lights to be in the off state at the same time.

[0091] In one embodiment, the method implemented when the processor executes the computer program also includes: dividing the visibility range less than the first visibility threshold into multiple visibility intervals, each visibility interval corresponding to a level of fog lamp brightness; when the comprehensive visibility is less than the first visibility threshold, determining the target visibility interval in which the comprehensive visibility is located; and adjusting the brightness of the front fog lamp and the rear fog lamp to the fog lamp brightness corresponding to the target visibility interval.

[0092] In one embodiment, the processor executing the computer program implements the following steps: obtaining the current light intensity sent by the sunlight and rainfall sensor before obtaining the first image outside the vehicle captured by the infrared thermal imaging camera and the second image outside the vehicle captured by the visible light camera in real time for the target scene outside the vehicle; and obtaining the first image outside the vehicle captured by the infrared thermal imaging camera and the second image outside the vehicle captured by the visible light camera in real time for the target scene outside the vehicle when the current light intensity is greater than a light intensity threshold.

[0093] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented: for a target scene outside the vehicle, a first image outside the vehicle captured by an infrared thermal imaging camera and a second image outside the vehicle captured by a visible light camera are acquired in real time; based on an image clarity evaluation model, a first clarity corresponding to the first image outside the vehicle and a second clarity corresponding to the second image outside the vehicle are acquired; based on the first clarity and the second clarity, a comprehensive clarity of the target scene is acquired, and based on the comprehensive clarity, a comprehensive visibility of the target scene is acquired; based on the comprehensive visibility, a first visibility threshold, and a second visibility threshold, a state of a vehicle fog lamp is controlled.

[0094] In one embodiment, the computer program implemented when executed by a processor obtains the comprehensive clarity of the target scene based on the first clarity and the second clarity, including: obtaining a first weight value corresponding to the first clarity and a second weight value corresponding to the second clarity; and obtaining the comprehensive clarity based on the first weight value, the second weight value, the first clarity, and the second clarity.

[0095] In one embodiment, the computer program implemented when executed by a processor to obtain the comprehensive visibility of the target scene based on the comprehensive clarity includes: obtaining a mapping function between clarity and visibility; and obtaining the comprehensive visibility corresponding to the comprehensive clarity based on the mapping function.

[0096] In one embodiment, the computer program implemented when executed by the processor controls the state of the vehicle fog lights based on the comprehensive visibility, the first visibility threshold, and the second visibility threshold, including: when the comprehensive visibility is less than the first visibility threshold, controlling the front fog lights and the rear fog lights of the vehicle to be in the on state at the same time; when the comprehensive visibility is not less than the first visibility threshold and not greater than the second visibility threshold, keeping the current states of the front fog lights and the rear fog lights unchanged; when the comprehensive visibility is greater than the second visibility threshold, controlling the front fog lights and the rear fog lights to be in the off state at the same time.

[0097] In one embodiment, the method implemented when the computer program is executed by the processor also includes: dividing the visibility range less than the first visibility threshold into multiple visibility intervals, each visibility interval corresponding to a level of fog lamp brightness; when the comprehensive visibility is less than the first visibility threshold, determining the target visibility interval in which the comprehensive visibility is located; and adjusting the brightness of the front fog lamp and the rear fog lamp to the fog lamp brightness corresponding to the target visibility interval.

[0098] In one embodiment, the computer program implemented when executed by the processor for the target scene outside the vehicle, before obtaining in real time a first image outside the vehicle captured by the infrared thermal imaging camera and a second image outside the vehicle captured by the visible light camera, also includes: obtaining the current light intensity sent by the sunlight and rainfall sensor; when the current light intensity is greater than a light intensity threshold, obtaining in real time the first image outside the vehicle captured by the infrared thermal imaging camera and the second image outside the vehicle captured by the visible light camera for the target scene outside the vehicle.

[0099] In one embodiment, a computer program product is provided, comprising a computer program, which implements the following steps when executed by a processor: acquiring, in real time, a first image outside the vehicle captured by an infrared thermal imaging camera and a second image outside the vehicle captured by a visible light camera for a target scene outside the vehicle; acquiring a first clarity corresponding to the first image outside the vehicle and a second clarity corresponding to the second image outside the vehicle based on an image clarity evaluation model; acquiring a comprehensive clarity of the target scene based on the first clarity and the second clarity, and acquiring a comprehensive visibility of the target scene based on the comprehensive clarity; and controlling the state of the vehicle fog lights based on the comprehensive visibility, a first visibility threshold, and a second visibility threshold.

[0100] In one embodiment, the computer program implemented when executed by a processor obtains the comprehensive clarity of the target scene based on the first clarity and the second clarity, including: obtaining a first weight value corresponding to the first clarity and a second weight value corresponding to the second clarity; and obtaining the comprehensive clarity based on the first weight value, the second weight value, the first clarity, and the second clarity.

[0101] In one embodiment, the computer program implemented when executed by a processor to obtain the comprehensive visibility of the target scene based on the comprehensive clarity includes: obtaining a mapping function between clarity and visibility; and obtaining the comprehensive visibility corresponding to the comprehensive clarity based on the mapping function.

[0102] In one embodiment, the computer program implemented when executed by the processor controls the state of the vehicle fog lights based on the comprehensive visibility, the first visibility threshold, and the second visibility threshold, including: when the comprehensive visibility is less than the first visibility threshold, controlling the front fog lights and the rear fog lights of the vehicle to be in the on state at the same time; when the comprehensive visibility is not less than the first visibility threshold and not greater than the second visibility threshold, keeping the current states of the front fog lights and the rear fog lights unchanged; when the comprehensive visibility is greater than the second visibility threshold, controlling the front fog lights and the rear fog lights to be in the off state at the same time.

[0103] In one embodiment, the method implemented when the computer program is executed by the processor also includes: dividing the visibility range less than the first visibility threshold into multiple visibility intervals, each visibility interval corresponding to a level of fog lamp brightness; when the comprehensive visibility is less than the first visibility threshold, determining the target visibility interval in which the comprehensive visibility is located; and adjusting the brightness of the front fog lamp and the rear fog lamp to the fog lamp brightness corresponding to the target visibility interval.

[0104] In one embodiment, the computer program implemented when executed by the processor for the target scene outside the vehicle, before obtaining in real time a first image outside the vehicle captured by the infrared thermal imaging camera and a second image outside the vehicle captured by the visible light camera, also includes: obtaining the current light intensity sent by the sunlight and rainfall sensor; when the current light intensity is greater than a light intensity threshold, obtaining in real time the first image outside the vehicle captured by the infrared thermal imaging camera and the second image outside the vehicle captured by the visible light camera for the target scene outside the vehicle.

[0105] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, 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 must comply with relevant regulations.

[0106] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.

[0107] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.

[0108] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A fog lamp state control method, characterized in that: The method comprises: For a target scene outside the vehicle, a first image outside the vehicle captured by an infrared thermal imaging camera and a second image outside the vehicle captured by a visible light camera are acquired in real time; Based on an image clarity evaluation model, obtaining a first clarity corresponding to the first vehicle exterior image and a second clarity corresponding to the second vehicle exterior image; Based on the first clarity and the second clarity, obtaining a comprehensive clarity of the target scene, and based on the comprehensive clarity, obtaining a comprehensive visibility of the target scene; Based on the comprehensive visibility, the first visibility threshold, and the second visibility threshold, a state of a fog lamp of the vehicle is controlled.

2. The method according to claim 1, characterized in that The acquiring the comprehensive clarity of the target scene based on the first clarity and the second clarity includes: Acquire a first weight value corresponding to the first definition and a second weight value corresponding to the second definition; The comprehensive definition is acquired based on the first weight value, the second weight value, the first definition, and the second definition.

3. The method according to claim 1, characterized in that: The step of acquiring the comprehensive visibility of the target scene based on the comprehensive clarity includes: Obtaining a mapping function between clarity and visibility; Based on the mapping function, the comprehensive visibility corresponding to the comprehensive clarity is obtained.

4. The method according to claim 1, characterized in that: The controlling the state of the vehicle fog lamp based on the comprehensive visibility, the first visibility threshold, and the second visibility threshold comprises: When the comprehensive visibility is less than the first visibility threshold, controlling the front fog lamp and the rear fog lamp of the vehicle to be turned on at the same time; When the comprehensive visibility is not less than the first visibility threshold and not greater than the second visibility threshold, keeping the current states of the front fog lamp and the rear fog lamp unchanged; When the comprehensive visibility is greater than the second visibility threshold, the front fog lamp and the rear fog lamp are controlled to be in an off state at the same time.

5. The method according to claim 4, characterized in that The method further comprises: Dividing the visibility range less than the first visibility threshold into a plurality of visibility intervals, each visibility interval corresponding to a level of fog lamp brightness; When the comprehensive visibility is less than the first visibility threshold, determining a target visibility interval in which the comprehensive visibility is located; The brightness of the front fog lamp and the rear fog lamp is adjusted to the fog lamp brightness corresponding to the target visibility range.

6. The method according to claim 1, characterized in that Before acquiring in real time a first image outside the vehicle acquired by the infrared thermal imaging camera and a second image outside the vehicle acquired by the visible light camera for a target scene outside the vehicle, the method further includes: Get the current light intensity sent by the sunlight and rain sensor; When the current light intensity is greater than the light intensity threshold, a first image outside the vehicle captured by the infrared thermal imaging camera and a second image outside the vehicle captured by the visible light camera are acquired in real time for the target scene outside the vehicle.

7. A fog lamp state control device, characterized in that: The device comprises: A first acquisition module is used to acquire, in real time, a first image outside the vehicle acquired by the infrared thermal imaging camera and a second image outside the vehicle acquired by the visible light camera for a target scene outside the vehicle; A second acquisition module, configured to acquire a first clarity corresponding to the first vehicle exterior image and a second clarity corresponding to the second vehicle exterior image based on an image clarity evaluation model; a third acquisition module, configured to acquire a comprehensive clarity of the target scene based on the first clarity and the second clarity, and acquire a comprehensive visibility of the target scene based on the comprehensive clarity; The control module is used to control the state of the vehicle fog lamp based on the comprehensive visibility, the first visibility threshold, and the second visibility threshold.

8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.

10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.

Citation Information

Cited By

  • Vehicle control system, method and device and storage medium

    CN119928705A

  • Fog lamp control method and device, electronic equipment and storage medium

    CN119953268A

  • Vehicle headlamp control method and device and storage medium

    CN121157779A