Vehicle light warning method and device, vehicle and storage medium
By performing timing sampling and ambient light compensation on light perception data, dynamically adjusting the brightness and pattern of warning taillights to promptly warn the rear vehicle, solving the problem that the existing technology cannot effectively reduce the risk of high beam exposure in the rear vehicle and improve driving Security.
Patent Information
- Application Number
- CN202411221245.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-02
- Publication Date
- 2024-12-13
AI Technical Summary
The prior art cannot effectively reduce the visual interference and potential danger of rear vehicle high beams to drivers in front of the vehicle, especially in extreme light conditions, which cannot promptly warn rear vehicle drivers to turn off the high beams, which increases the risk of accidents.
By obtaining the light perception data collected by multiple light sensors, performing timing sampling and ambient light compensation, dynamically adjusting the brightness and pattern of the warning taillights to alert the rear vehicle. If the light intensity exceeds the preset threshold, a voice prompt will be generated.
It improves the sensitivity to identify strong light, reduces false alarms, promptly identify and warns that there is strong light exposure in the rear vehicle, reduces visual fatigue and accident risks during driving, and improves driving safety.
Smart Images

Figure CN119116828A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of vehicle light control, and in particular to a vehicle light warning method, device, vehicle and storage medium. Background Art
[0002] In order to reduce the visual interference and potential danger caused by the high beam of the rear vehicle to the driver of the front vehicle, a variety of technical means have been adopted. The most common method is to adjust the reflective characteristics of the mirror surface through the coating of the reflector and the rearview mirror, reduce or disperse the strong light from the high beam of the rear vehicle, and reduce the visual interference of the driver of the front vehicle. However, although these coating technologies have been applied in the market, they still have some significant disadvantages and limitations. For example, under extreme light conditions, such as strong high beams on highways at night, the coating may not completely eliminate the impact of strong light on the driver's vision, and there are still safety hazards; the existing reflector coating and rearview mirror coating technologies mainly focus on reducing the reflection of light, and do not directly warn the rear driver to turn off the high beam. The rear driver may still continue to use the high beam because he is not aware of the impact of his high beam on the front vehicle, which cannot fundamentally solve the problem; and for vehicles approaching quickly at night, especially vehicles that suddenly turn on the high beam, the existing coating technology cannot provide timely safety prompts or warnings. Due to the high speed of the vehicle and the rapid change of light, the driver may not be able to react in time, thereby increasing the risk of accidents.
[0003] Currently, it is not possible to directly reduce the danger of rear vehicle light exposure through coating, and it is not possible to provide timely warnings to rear vehicles. Summary of the invention
[0004] The present application provides a vehicle light warning method, device, vehicle and storage medium to solve the above-mentioned technical problems of being unable to directly reduce the danger of rear vehicle light illumination and being unable to promptly warn the rear vehicle.
[0005] In one embodiment of the present application, the present application provides a vehicle light warning method, including: obtaining light perception data of the vehicle, and performing time-series sampling on the light perception data to obtain light sampling data, the light sampling data including ambient light sampling data and light sampling data, and the light perception data is collected based on multiple light sensors; performing ambient light compensation according to the difference between the light sampling data and the ambient light sampling data to obtain target sampling data, and comparing a preset first threshold with the target sampling data to obtain a strong or weak light state of the target sampling data; if the strong or weak light state is strong light, determining a target brightness value corresponding to the target sampling data according to a preset brightness conversion relationship, and controlling the brightness display of the warning taillight according to the target brightness value to warn the following vehicle, and the preset brightness conversion relationship is used to characterize the brightness relationship between the light sensor and the warning taillight.
[0006] In one embodiment of the present application, after the brightness display of the warning taillight is controlled according to the target brightness value, the method includes: if the target brightness value satisfies a preset brightness level range, controlling the warning taillight to display a warning pattern corresponding to the preset brightness level range to warn the following vehicle; if the target sampling data is greater than a preset third threshold, generating a voice prompt signal to warn the vehicle of the approaching vehicle behind; wherein the preset third threshold is obtained based on the maximum light intensity receiving value in the light intensity receiving range, and the preset brightness level range is a plurality of different levels.
[0007] In one embodiment of the present application, the warning taillight is controlled to display a warning pattern corresponding to the preset brightness level range, including: if the preset brightness level range is the lowest brightness level range, the warning taillight is controlled to display the initial taillight pattern corresponding to the warning taillight; if the preset brightness level range is the middle brightness level range, the warning taillight is controlled to display the preset first pattern; if the preset brightness level range is the highest brightness level range, the warning taillight is controlled to display the preset second pattern; wherein the warning pattern includes the initial taillight pattern, the preset first pattern and the preset second pattern.
[0008] In one embodiment of the present application, the preset brightness conversion relationship includes: obtaining the taillight brightness range of the warning taillight and the light intensity receiving range of the light sensor; performing a linear conversion of the brightness of the light intensity receiving range according to the taillight brightness range to obtain the preset brightness conversion relationship.
[0009] In one embodiment of the present application, ambient light compensation is performed according to the difference between the light sampling data and the ambient light sampling data to obtain target sampling data, including: if the difference between the light sampling data and the ambient light sampling data is greater than a preset second threshold, the difference between the light sampling data and the ambient light sampling data is determined as the target sampling data; if the difference between the light sampling data and the ambient light sampling data is less than the preset second threshold, the preset second threshold is determined as the target sampling data; if the difference between the light sampling data and the ambient light sampling data is equal to the preset second threshold, the preset second threshold, or the difference between the light sampling data and the ambient light sampling data is determined as the target sampling data.
[0010] In one embodiment of the present application, a preset first threshold and the target sampling data are compared to obtain the strong or weak light state of the target sampling data, including: if the target sampling data is greater than the preset first threshold, the strong or weak light state is determined as strong light; if the target sampling data is less than or equal to the preset first threshold, the strong or weak light state is determined as weak light.
[0011] In one embodiment of the present application, the present application provides a vehicle light warning device, including: a data acquisition module, used to acquire light perception data of the vehicle, and perform time-series sampling on the light perception data to obtain light sampling data, wherein the light sampling data includes ambient light sampling data and light sampling data, and the light perception data is obtained based on the collection of multiple light sensors; a strong and weak light determination module, used to perform ambient light compensation according to the difference between the light sampling data and the ambient light sampling data to obtain target sampling data, and compare a preset first threshold with the target sampling data to obtain the strong and weak light state of the target sampling data; a brightness control module, used to determine the target brightness value corresponding to the target sampling data according to a preset brightness conversion relationship if the strong and weak light state is strong light, and perform brightness display control on the warning taillight according to the target brightness value to warn the following vehicle, and the preset brightness conversion relationship is used to characterize the brightness relationship between the light sensor and the warning taillight.
[0012] In one embodiment of the present application, the light sensor includes: a first sensor, used to collect ambient light perception data corresponding to the ambient light sampling data, installed in front of the vehicle and / or on the side of the vehicle; a second sensor, used to collect light perception data corresponding to the light sampling data, installed at the rear of the vehicle and facing toward the rear of the vehicle; wherein the light perception data includes the ambient light perception data and the light perception data.
[0013] In one embodiment of the present application, the present application provides a vehicle, comprising: one or more processors; a storage device for storing one or more programs, and when the one or more programs are executed by the one or more processors, the vehicle implements the vehicle light warning method as described in any one of the above embodiments.
[0014] In one embodiment of the present application, the present application provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor of a computer, the computer executes the vehicle light warning method described in any one of the above embodiments.
[0015] The beneficial effects of the embodiments of the present application: The present application provides a vehicle light warning method, device, vehicle and storage medium. The embodiments of the present application perform ambient light compensation through the difference between light sampling data and ambient light sampling data, thereby improving the sensitivity of strong and weak light judgment, reducing false alarms of strong light caused by slight light changes or noise, and timely identifying the presence of strong light exposure to the rear vehicle; dynamically adjusting the brightness of the warning taillights through target sampling data, thereby directly warning the rear vehicle in a timely manner, reducing the visual fatigue caused by the rear vehicle following the vehicle, and improving driving safety.
[0016] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] The drawings herein are incorporated into the specification and constitute a part of the specification, showing embodiments consistent with the present application, and together with the specification, are used to explain the principles of the present application. Obviously, the drawings described below are only some embodiments of the present application, and for those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative work. In the drawings:
[0018] Figure 1 A schematic diagram showing an exemplary system architecture to which the technical solution of the embodiments of the present application can be applied;
[0019] Figure 2 A schematic diagram of a vehicle light warning method according to an embodiment of the present application is shown;
[0020] Figure 3 A schematic diagram showing a preset brightness conversion relationship according to an embodiment of the present application is shown;
[0021] Figure 4 A schematic diagram of an implementation process of a vehicle light warning method according to an embodiment of the present application is shown;
[0022] Figure 5A schematic diagram of a data preprocessing process according to an embodiment of the present application is shown;
[0023] Figure 6 A block diagram of a vehicle light warning device according to an embodiment of the present application is shown;
[0024] Figure 7 A schematic diagram of the structure of a computer system of a vehicle suitable for implementing an embodiment of the present application is shown. DETAILED DESCRIPTION
[0025] The following describes the embodiments of the present application through specific examples, and those skilled in the art can easily understand other advantages and effects of the present application from the contents disclosed in this specification. The present application can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present application. It should be noted that the following embodiments and features in the embodiments can be combined with each other without conflict.
[0026] It should be noted that the illustrations provided in the following embodiments are only schematic illustrations of the basic concept of the present application, and thus the drawings only show components related to the present application rather than being drawn according to the number, shape and size of components in actual implementation. In actual implementation, the type, quantity and proportion of each component may be changed at will, and the component layout may also be more complicated.
[0027] In the following description, a large number of details are discussed to provide a more thorough explanation of the embodiments of the present application. However, it is obvious to those skilled in the art that the embodiments of the present application can be implemented without these specific details. In other embodiments, well-known structures and devices are shown in the form of block diagrams rather than in detail to avoid making the embodiments of the present application difficult to understand.
[0028] See also Figure 1 , Figure 1 A schematic diagram of an exemplary system architecture to which the technical solution of the embodiment of the present application can be applied is shown. Figure 1 As shown, the system architecture may include a computer device 101 and a light sensor 102. There are multiple light sensors 102, and the computer device 101 may be at least one of a microcomputer, an embedded computer, and the like.
[0029] Exemplarily, a computer device acquires light perception data of the vehicle and performs time-series sampling on the light perception data to obtain light sampling data, wherein the light sampling data includes ambient light sampling data and light sampling data, and the light perception data is collected based on multiple light sensors; ambient light compensation is performed based on the difference between the light sampling data and the ambient light sampling data to obtain target sampling data, and a preset first threshold value is compared with the target sampling data to obtain a strong or weak light state of the target sampling data; if the strong or weak light state is strong light, a target brightness value corresponding to the target sampling data is determined based on a preset brightness conversion relationship, and the brightness display of the warning taillight is controlled based on the target brightness value to warn the following vehicle, and the preset brightness conversion relationship is used to characterize the brightness relationship between the light sensor and the warning taillight.
[0030] In the related art, it is not possible to effectively reduce the danger of rear vehicle light exposure through coating, and it is not possible to provide timely and effective warnings to rear vehicles.
[0031] In order to solve the above technical problems, the present application provides a vehicle light warning method, device, vehicle and storage medium. The implementation details of the technical solution of the embodiment of the present application are elaborated in detail below.
[0032] See also Figure 2 , Figure 2 FIG. 2 shows a flow chart of a vehicle light warning method according to an embodiment of the present application. Figure 2 As shown, in an exemplary embodiment, the vehicle light warning method at least includes steps S210 to S230, which are described in detail as follows:
[0033] Step S210, acquiring the light perception data of the vehicle, and performing time-series sampling on the light perception data to obtain light sampling data.
[0034] Among them, the light sampling data includes ambient light sampling data and light sampling data, and the light perception data is collected based on multiple light sensors.
[0035] In one embodiment of the present application, the detection values in the light sensing data are read regularly according to a preset timing sampling frequency R to obtain the light sampling data.
[0036] In one embodiment of the present application, the light sensor includes: a first sensor, used to collect ambient light perception data corresponding to the ambient light sampling data, installed in front of the vehicle and / or on the side of the vehicle; a second sensor, used to collect light perception data corresponding to the light sampling data, installed at the rear of the vehicle and facing toward the rear of the vehicle; wherein the light perception data includes ambient light perception data and light perception data.
[0037] Step S220, performing ambient light compensation according to the difference between the light sampling data and the ambient light sampling data to obtain target sampling data, and comparing a preset first threshold with the target sampling data to obtain the strong or weak light state of the target sampling data.
[0038] In one embodiment of the present application, ambient light compensation is performed based on the difference between the light sampling data and the ambient light sampling data to obtain target sampling data, including: if the difference between the light sampling data and the ambient light sampling data is greater than a preset second threshold, the difference between the light sampling data and the ambient light sampling data is determined as the target sampling data; if the difference between the light sampling data and the ambient light sampling data is less than the preset second threshold, the preset second threshold is determined as the target sampling data; if the difference between the light sampling data and the ambient light sampling data is equal to the preset second threshold, the preset second threshold, or the difference between the light sampling data and the ambient light sampling data is determined as the target sampling data.
[0039] In one embodiment of the present application, ambient light compensation is performed by presetting a second threshold, a difference between light sampling data and ambient light sampling data, thereby improving the sensitivity of strong and weak light judgment and reducing false alarms of strong light caused by slight light changes or noise.
[0040] In one embodiment of the present application, the ambient light sampling data is recorded as Q, the light sampling data is recorded as W, the target sampling data is recorded as W', the preset first threshold is recorded as M1, and the preset second threshold is recorded as M2.
[0041] In one embodiment of the present application, the target sampling data is compared with a preset second threshold value based on the difference between the light sampling data and the ambient light sampling data, and takes the maximum value, that is, W'=max(M2, WQ).
[0042] In one embodiment of the present application, the value of the preset second threshold is 0.
[0043] In one embodiment of the present application, a preset first threshold value and target sampling data are compared to obtain the strong or weak light state of the target sampling data, including: if the target sampling data is greater than the preset first threshold value, the strong or weak light state is determined as strong light; if the target sampling data is less than or equal to the preset first threshold value, the strong or weak light state is determined as weak light.
[0044] In one embodiment of the present application, if W' is greater than M1, it means that W' is a strong light and the following vehicle needs to be warned.
[0045] In one embodiment of the present application, if W' is less than or equal to M1, it means that W' is weak light, and the current process ends. If the warning taillight is turned on, the warning taillight is turned off and the display pattern is reset, and the next round of timing sampling is performed to obtain new light sampling data.
[0046] In step S230, if the strong or weak light state is strong light, the target brightness value corresponding to the target sampling data is determined according to the preset brightness conversion relationship, and the brightness display of the warning taillight is controlled according to the target brightness value to warn the following vehicle. The preset brightness conversion relationship is used to characterize the brightness relationship between the light sensor and the warning taillight.
[0047] In one embodiment of the present application, the preset brightness conversion relationship includes: obtaining the taillight brightness range of the warning taillight and the light intensity receiving range of the light sensor; performing a linear conversion of the brightness of the light intensity receiving range according to the taillight brightness range to obtain the preset brightness conversion relationship.
[0048] In one embodiment of the present application, the linear conversion is shown as follows:
[0049] T=pX+n Formula (1)
[0050] Wherein, T is the brightness value of the warning taillight, X is the light intensity received value of the light sensor, p is the first constant, and n is the second constant.
[0051] In one embodiment of the present application, (maximum taillight brightness value, maximum light intensity received value) and (minimum taillight brightness value, minimum light intensity received value) are substituted into formula (1) to obtain the values of the first constant and the second constant.
[0052] In one embodiment of the present application, the brightness range of the taillight is 0-500, and the light intensity receiving range is 0-2500.
[0053] In one embodiment of the present application, see Figure 3 , Figure 3 FIG. 1 is a schematic diagram showing a preset brightness conversion relationship according to an embodiment of the present application. Figure 3 As shown, by substituting (0, 0) and (500, 2500) into formula (1), p is 0.2 and n is 0, so the preset brightness conversion relationship is as shown in the following formula:
[0054] T=0.2X Formula (2)
[0055] Wherein, T is the brightness value of the warning taillight, and X is the light intensity received value of the light sensor.
[0056] In one embodiment of the present application, the target sampling data is substituted into a preset brightness conversion relationship as the value of X to obtain a target brightness value, so as to set the display brightness of the warning tail light to the target brightness value.
[0057] In one embodiment of the present application, after the brightness display of the warning taillight is controlled according to the target brightness value, the method includes: if the target brightness value satisfies a preset brightness level range, controlling the warning taillight to display a warning pattern corresponding to the preset brightness level range to warn the following vehicle; if the target sampling data is greater than a preset third threshold, generating a voice prompt signal to warn the vehicle of the approaching vehicle behind; wherein the preset third threshold is obtained based on the maximum light intensity receiving value in the light intensity receiving range, and the preset brightness level range is a plurality of different levels.
[0058] In one embodiment of the present application, the preset third threshold is obtained based on a preset ratio of the maximum light intensity reception value.
[0059] In one embodiment of the present application, the third threshold is preset to be half of the maximum light intensity received value.
[0060] In one embodiment of the present application, if the target sampling data is greater than a preset third threshold, it indicates that the rear vehicle is relatively close, and the vehicle triggers a voice prompt to the driver of the vehicle that "a vehicle is approaching from behind."
[0061] In one embodiment of the present application, the warning taillight is controlled to display a warning pattern corresponding to a preset brightness level range, including: if a preset brightness level range is the lowest brightness level range, the warning taillight is controlled to display an initial taillight pattern corresponding to the warning taillight; if a preset brightness level range is an intermediate brightness level range, the warning taillight is controlled to display a preset first pattern; if a preset brightness level range is the highest brightness level range, the warning taillight is controlled to display a preset second pattern; wherein the warning pattern includes an initial taillight pattern, a preset first pattern and a preset second pattern.
[0062] In one embodiment of the present application, the preset second pattern may include a plurality of warning patterns of different levels.
[0063] In one embodiment of the present application, three warning patterns of the warning taillights are preset to indicate different warning levels. The warning levels are set according to the urgency: general, dangerous, relatively dangerous, and very dangerous. When the urgency is general, the default pattern of the warning taillights is displayed.
[0064] In one embodiment of the present application, it is determined whether the target brightness value is within the preset brightness level range corresponding to the three emergency levels of "dangerous, relatively dangerous, and very dangerous". If the target brightness value is within the preset brightness level range, the display pattern of the warning tail light is set to the warning pattern corresponding to the emergency level; if the target brightness value is not within the preset brightness level range corresponding to the three emergency levels, the display pattern of the warning tail light is restored to the default pattern.
[0065] In one embodiment of the present application, a plurality of preset brightness level ranges corresponding to warning levels are divided according to the taillight brightness range of the warning taillight.
[0066] In one embodiment of the present application, the preset brightness level range corresponding to danger is 200 to 350; the preset brightness level range corresponding to relatively danger is 350 to 450; and the preset brightness level range corresponding to very danger is 450 to 500.
[0067] In one embodiment of the present application, see Figure 4 , Figure 4 FIG. 1 is a schematic diagram showing an implementation process of a vehicle light warning method according to an embodiment of the present application. Figure 4 As shown, data preset: set the preset timing sampling frequency, linear conversion relationship, preset first threshold, light intensity receiving range, and warning patterns corresponding to different warning levels; light sensor placement: the light sensor includes: installing the light sensor in front of the vehicle and / or on the side of the vehicle to detect ambient light, installing the linear light sensor at the rear of the vehicle, and facing the rear of the vehicle to detect the lighting intensity behind the vehicle; constructing a basic function: determining the constant value of the linear conversion, obtaining the preset brightness conversion relationship, dividing the preset brightness level range corresponding to multiple warning levels according to the taillight brightness range of the warning taillight, and determining the sampling function according to the preset timing sampling frequency to regularly read the detection value of the light sensor; data preprocessing: performing time-series sampling on the light perception data through the sampling function to obtain ambient light sampling data and light sampling data, thereby obtaining target sampling data, and performing strong and weak light judgment; alarm processing: if it is strong light, the target brightness value corresponding to the target sampling data is determined according to the preset brightness conversion relationship, and an alarm is issued through the target sampling data and the target brightness value.
[0068] In one embodiment of the present application, see Figure 5 , Figure 5 FIG. 2 shows a schematic diagram of a data preprocessing process according to an embodiment of the present application. Figure 5As shown, the processing starts: after the vehicle is started, the light sensor starts to collect light perception data; ambient light data sampling: the detection value of the ambient light perception data is read regularly through the sampling function to obtain the ambient light sampling data; light data sampling: the detection value of the light perception data is read regularly through the sampling function to obtain the light sampling data; ambient light compensation algorithm: the difference between the ambient light data sampling and the light sampling data is subtracted, and the difference is compared with the preset second preset; calculate the target sample data: take the maximum value of the preset second preset and the difference as the target sample data; determine whether it is strong light: if the target sample data is greater than the preset first threshold, it is strong light, and enter the alarm processing step, if the target If the sampling data is less than or equal to the preset first threshold, it is weak light, and the process starts again to obtain new light sampling data; warning processing: determine the target brightness value corresponding to the target sampling data according to the preset brightness conversion relationship, control the display brightness of the warning taillight to the target brightness value, and control the warning taillight to display the corresponding warning pattern based on whether the target brightness value meets a preset brightness level range, so as to more directly warn the following vehicle through the warning pattern. If the target sampling data is greater than the preset third threshold, the voice prompt of the vehicle is triggered to remind the driver of the vehicle that "a vehicle is approaching from behind". The preset third threshold can be half of the maximum light intensity receiving value of the light sensor.
[0069] In one embodiment of the present application, the present application warns of the high beam illumination of the rear vehicle after determining the presence of strong light; and makes a safety warning of the distance relationship of the rear vehicle by comparing a preset third threshold value with the target sampling data; the present application can obtain the target sample data through time series sampling and ambient light compensation algorithm, so as to dynamically adjust the light brightness and light display pattern of the warning taillights in real time, warn the rear vehicle in a timely and direct manner, and can effectively reduce the visual fatigue caused by following the rear vehicle, thereby improving driving safety.
[0070] See also Figure 6 , Figure 6 A block diagram of a vehicle light warning device according to an embodiment of the present application is shown. The device can be applied to Figure 1 The implementation environment shown in the figure is specifically configured in the computer device 101. The device can also be applied to other exemplary implementation environments and specifically configured in other devices. This embodiment does not limit the implementation environment to which the device is applied.
[0071] like Figure 6 As shown, a vehicle light warning device 600 according to an embodiment of the present application includes: a data acquisition module 601 , a strong or weak light determination module 602 , and a brightness control module 603 .
[0072] The data acquisition module 601 is used to acquire the light perception data of the vehicle and perform time-series sampling on the light perception data to obtain light sampling data, where the light sampling data includes ambient light sampling data and light sampling data, and the light perception data is acquired based on the collection of multiple light sensors;
[0073] The strong and weak light determination module 602 is used to perform ambient light compensation according to the difference between the light sampling data and the ambient light sampling data to obtain target sampling data, and compare the preset first threshold with the target sampling data to obtain the strong and weak light state of the target sampling data;
[0074] The brightness control module 603 is used to determine the target brightness value corresponding to the target sampling data according to the preset brightness conversion relationship if the strong or weak light state is strong light, and control the brightness display of the warning taillight according to the target brightness value to warn the following vehicle. The preset brightness conversion relationship is used to characterize the brightness relationship between the light sensor and the warning taillight.
[0075] It should be noted that the vehicle light warning device provided in the above embodiment and the vehicle light warning method provided in the above embodiment belong to the same concept, wherein the specific manner in which each module and unit performs the operation has been described in detail in the method embodiment, and will not be repeated here. In actual application, the vehicle light warning device provided in the above embodiment can allocate the above functions to different functional modules as needed, that is, divide the internal structure of the device into different functional modules to complete all or part of the functions described above, and this is not limited here.
[0076] An embodiment of the present application also provides a vehicle, comprising: one or more processors; a storage device for storing one or more programs, when the one or more programs are executed by one or more processors, the vehicle implements the vehicle light warning method provided in the above-mentioned embodiments.
[0077] See also Figure 7 , Figure 7 The schematic diagram of the structure of the computer system of the vehicle suitable for implementing the embodiment of the present application is shown. It should be noted that: Figure 7 The vehicle computer system 700 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0078] like Figure 7As shown, the computer system 700 includes a central processing unit (CPU) 701, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 702 or the program loaded from the storage part 708 to the random access memory (RAM) 703, such as executing the method in the above embodiment. In the random access memory 703, various programs and data required for system operation are also stored. The central processing unit 701, the read-only memory 702 and the random access memory 703 are connected to each other through a bus 704. An input / output (I / O) interface 705 is also connected to the bus 704.
[0079] The following components are connected to the input / output interface 705: an input section 706 including a keyboard, a mouse, etc.; an output section 707 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 708 including a hard disk, etc.; and a communication section 709 including a network interface card such as a LAN (Local Area Network) card, a modem, etc. The communication section 709 performs communication processing via a network such as the Internet. A drive 710 is also connected to the input / output interface 705 as needed. A removable medium 711, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 710 as needed so that a computer program read therefrom is installed into the storage section 708 as needed.
[0080] In particular, according to an embodiment of the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a computer program for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication section 709, and / or installed from a removable medium 711. When the computer program is executed by a central processing unit (CPU) 701, various functions defined in the system of the present application are executed.
[0081] It should be noted that the computer-readable medium shown in the embodiment of the present application can be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium can be, for example, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media can include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a 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 above. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, wherein a computer-readable computer program is carried. This propagated data signal can take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. A computer program contained on a computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.
[0082] The flowchart and block diagram in the accompanying drawings illustrate the possible architecture, functions and operations of the system, method and computer program product according to various embodiments of the present application. Wherein, each box in the flowchart or block diagram can represent a module, a program segment, or a part of the code, and the above-mentioned module, program segment, or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flowchart, and the combination of boxes in the block diagram or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0083] The units involved in the embodiments described in the present application can be implemented by software or by hardware, and the units described can also be set in a processor. Among them, the names of these units do not constitute a limitation on the units themselves under certain circumstances. Therefore, the technical solution according to the implementation mode of the present application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, including a number of instructions to enable a computing device (which can be a personal computer, a server, a touch terminal, or a network device, etc.) to execute the method according to the implementation mode of the present application.
[0084] Another aspect of the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor of a computer, causes the computer to execute the vehicle light warning method provided in the above-mentioned embodiments. The computer-readable storage medium may be included in the vehicle described in the above-mentioned embodiments, or may exist independently without being assembled into the vehicle.
[0085] In the above embodiments, unless otherwise specified, by using serial numbers such as "first" and "second" to describe common objects, it only means that they refer to different instances of the same object, rather than indicating that the objects being described must adopt a given order, whether in time, space, sorting or any other way.
[0086] The above embodiments are merely illustrative of the principles and effects of the present application, and are not intended to limit the present application. Anyone familiar with the technology may modify or change the above embodiments without violating the spirit and scope of the present application. Therefore, all equivalent modifications or changes made by a person of ordinary skill in the art without departing from the spirit and technical ideas disclosed in the present application shall still be covered by the claims of the present application.
Claims
1. A vehicle light warning method, It is characterized in that The method comprises: Acquire light perception data of the vehicle, and perform time-series sampling on the light perception data to obtain light sampling data, wherein the light sampling data includes ambient light sampling data and light sampling data, and the light perception data is collected based on multiple light sensors; Performing ambient light compensation according to the difference between the light sampling data and the ambient light sampling data to obtain target sampling data, and comparing a preset first threshold with the target sampling data to obtain a strong or weak light state of the target sampling data; If the strong or weak light state is strong light, the target brightness value corresponding to the target sampling data is determined according to a preset brightness conversion relationship, and the brightness display of the warning taillight is controlled according to the target brightness value to warn the following vehicle. The preset brightness conversion relationship is used to characterize the brightness relationship between the light sensor and the warning taillight.
2. The vehicle light warning method according to claim 1, It is characterized in that After controlling the brightness display of the warning taillight according to the target brightness value, the method includes: If the target brightness value satisfies a preset brightness level range, the warning taillight is controlled to display a warning pattern corresponding to the preset brightness level range to warn the following vehicle; If the target sampling data is greater than a preset third threshold, a voice prompt signal is generated to warn the vehicle of the approaching vehicle behind; The preset third threshold is obtained based on the maximum light intensity reception value in the light intensity reception range, and the preset brightness level range is a plurality of different levels.
3. The vehicle light warning method according to claim 2, It is characterized in that Controlling the warning taillight to display a warning pattern corresponding to the preset brightness level range includes: If the preset brightness level range is the lowest brightness level range, controlling the warning taillight to display an initial taillight pattern corresponding to the warning taillight; If the preset brightness level range is a middle brightness level range, controlling the warning taillight to display a preset first pattern; If the preset brightness level range is the highest brightness level range, controlling the warning taillight to display the preset second pattern; Wherein, the warning pattern includes the initial taillight pattern, the preset first pattern and the preset second pattern.
4. The vehicle light warning method according to claim 1, It is characterized in that The preset brightness conversion relationship includes: Acquire the taillight brightness range of the warning taillight and the light intensity receiving range of the light sensor; The light intensity receiving range is linearly converted in brightness according to the taillight brightness range to obtain the preset brightness conversion relationship.
5. The vehicle light warning method according to any one of claims 1 to 4, It is characterized in that Performing ambient light compensation according to the difference between the light sampling data and the ambient light sampling data to obtain target sampling data includes: If the difference between the light sampling data and the ambient light sampling data is greater than a preset second threshold, determining the difference between the light sampling data and the ambient light sampling data as the target sampling data; If the difference between the light sampling data and the ambient light sampling data is less than a preset second threshold, determining the preset second threshold as the target sampling data; If the difference between the light sampling data and the ambient light sampling data is equal to a preset second threshold, the preset second threshold, or the difference between the light sampling data and the ambient light sampling data, is determined as the target sampling data.
6. The vehicle light warning method according to claim 5, It is characterized in that Comparing a preset first threshold with the target sampling data to obtain the strong or weak light state of the target sampling data includes: If the target sampling data is greater than a preset first threshold, the strong or weak light state is determined to be strong light; If the target sampling data is less than or equal to a preset first threshold, the strong or weak light state is determined to be weak light.
7. A vehicle light warning device, It is characterized in that The device comprises: A data acquisition module is used to acquire light perception data of the vehicle, and perform time-series sampling on the light perception data to obtain light sampling data, wherein the light sampling data includes ambient light sampling data and light sampling data, and the light perception data is acquired based on the collection of multiple light sensors; A strong or weak light determination module, used to perform ambient light compensation according to the difference between the light sampling data and the ambient light sampling data to obtain target sampling data, and compare a preset first threshold with the target sampling data to obtain the strong or weak light state of the target sampling data; A brightness control module is used to determine the target brightness value corresponding to the target sampling data according to a preset brightness conversion relationship if the strong or weak light state is strong light, and to control the brightness display of the warning taillight according to the target brightness value to warn the following vehicle. The preset brightness conversion relationship is used to characterize the brightness relationship between the light sensor and the warning taillight.
8. The vehicle light warning device according to claim 7, It is characterized in that The light sensor comprises: A first sensor, used for collecting ambient light sensing data corresponding to the ambient light sampling data, installed in front of the vehicle and / or on the side of the vehicle; The second sensor is used to collect light sensing data corresponding to the light sampling data, and is installed at the rear of the vehicle and faces the rear of the vehicle; The light perception data includes the ambient light perception data and the light perception data.
9. A vehicle, It is characterized in that The vehicle comprises: one or more processors; A storage device for storing one or more programs, when the one or more programs are executed by the one or more processors, enables the vehicle to implement the vehicle light warning method as described in any one of claims 1 to 6.
10. A computer-readable storage medium, It is characterized in that A computer program is stored thereon, and when the computer program is executed by a processor of a computer, the computer is enabled to execute the vehicle light warning method according to any one of claims 1 to 6.
