Vehicle glass adjusting method and device, vehicle and computer readable storage medium

By obtaining road conditions information in real time and predicting the light intensity in the tunnel, adjusting the light transmittance of the vehicle glass, the impact of light changes on the driver when the vehicle enters and exits the tunnel is solved, and driving safety is improved.

CN119428110APending Publication Date: 2025-02-14CHONGQING SELIS PHOENIX INTELLIGENT INNOVATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411768040.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-04
Publication Date
2025-02-14

AI Technical Summary

Technical Problem

When vehicles enter and exit the tunnel, it is difficult for the driver to adapt to the sudden changes in light, resulting in safety hazards.

Method used

By obtaining real-time road conditions information, predict the light intensity in the tunnel, and adjust the light transmittance of the vehicle glass according to the predicted value, so that it gradually changes to the target light transmittance to reduce the impact of light changes on the driver.

Benefits of technology

It effectively reduces the dazzling light caused by sudden changes in light when entering the tunnel, and improves driving safety.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119428110A_ABST
    Figure CN119428110A_ABST
Patent Text Reader

Abstract

The invention discloses a vehicle glass adjusting method and device, a vehicle and a storage medium. The method comprises the steps that real-time road condition information of a road section where the vehicle is located is obtained; if it is determined that the vehicle enters the tunnel at the next moment based on the real-time road condition information, obtaining first predicted illumination intensity in the tunnel; determining a first target light transmittance of vehicle glass when the vehicle enters the tunnel based on the first predicted illumination intensity; and adjusting the light transmittance of the current vehicle glass based on the first target light transmittance, so that the light transmittance of the vehicle glass is gradually changed to the first target light transmittance. By means of the technical scheme, a driver can hardly feel dazzling caused by sudden change of light rays when entering the tunnel, and finally driving safety is improved.
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 glass control, and in particular to a method and device for adjusting vehicle glass, a vehicle and a computer-readable storage medium. Background Art

[0002] In the related art, although a sun visor is provided on the front windshield to prevent strong light exposure, when driving a car, if the light suddenly changes at the entrance or exit of a tunnel, the driver cannot use the sun visor to solve the sudden change of light. Therefore, driving in this situation will cause great safety hazards.

[0003] Application Contents

[0004] In view of the above problems, the present application provides a method and device for adjusting vehicle glass, a vehicle and a computer-readable storage medium, which are used to solve the safety problem when the vehicle enters and exits a tunnel.

[0005] According to one aspect of an embodiment of the present application, a method for adjusting vehicle glass is provided, the method comprising: obtaining real-time traffic information of a road section where a vehicle is located; if it is determined based on the real-time traffic information that the vehicle will enter a tunnel at the next moment, obtaining a first predicted light intensity in the tunnel; determining a first target transmittance of the vehicle glass when the vehicle enters the tunnel based on the first predicted light intensity; and adjusting the transmittance of the current vehicle glass based on the first target transmittance so that the transmittance of the vehicle glass gradually changes to the first target transmittance.

[0006] In an optional manner, the method for obtaining the first predicted light intensity in the tunnel includes: if the distance between the vehicle and the tunnel entrance is less than a preset distance, obtaining the first actual light intensity received by the vehicle glass; obtaining the illumination intensity of a searchlight in the tunnel; and determining the first predicted light intensity based on the first actual light intensity and the illumination intensity of the searchlight.

[0007] In an optional manner, the method for adjusting the transmittance of the vehicle glass based on the first target transmittance includes: obtaining the target time required for the vehicle to enter the tunnel; if the target time is greater than a preset time, uniformly changing the transmittance of the vehicle glass to the first target transmittance based on the target time.

[0008] In an optional embodiment, the method includes: if the target time is less than the preset time, dividing the target time into a first target time and a second target time, the first target time being less than the second target time; based on the first target time, changing the transmittance of the vehicle glass to a first transmittance threshold at a first speed value; based on the second target time, changing the transmittance of the vehicle glass from the first transmittance threshold to the first target transmittance at a uniform speed of a second speed value; wherein the first speed value is greater than the second speed value.

[0009] In an optional embodiment, the method also includes: if it is detected that the vehicle is located in the tunnel, obtaining a second actual light intensity of the vehicle in real time; correcting the first target transmittance based on the second actual light intensity to obtain a second target transmittance; and adjusting the transmittance of the vehicle glass based on the second target transmittance so that the transmittance of the vehicle after entering the tunnel is the second target transmittance.

[0010] In an optional embodiment, the method further includes: if a searchlight is detected in the tunnel, obtaining a direct light path in the tunnel; dividing the vehicle glass into a direct light area and a non-direct light area based on the direct light path; adjusting the non-direct light area based on the second target transmittance, and adjusting the direct light area based on a third target transmittance; wherein the third target transmittance is less than the second target transmittance.

[0011] In an optional manner, the method further includes: if it is determined that the vehicle will leave the tunnel at the next moment, obtaining a second predicted light intensity outside the tunnel; determining a fourth target transmittance of the vehicle glass based on the second predicted light intensity; and adjusting the vehicle glass based on the fourth target transmittance so that the transmittance of the vehicle glass gradually changes to the fourth target transmittance before exiting the tunnel.

[0012] According to another aspect of an embodiment of the present application, a device for adjusting vehicle glass is provided, the device comprising: a first acquisition module, for acquiring real-time traffic information of a road section where a vehicle is located; a second acquisition module, for acquiring a first predicted light intensity in the tunnel if it is determined based on the real-time traffic information that the vehicle will enter a tunnel at the next moment; a determination module, for determining a first target transmittance of the vehicle glass based on the first predicted light intensity; and an adjustment module, for adjusting the vehicle glass based on the first target transmittance so that the transmittance of the vehicle glass is the first target transmittance when the vehicle enters the tunnel.

[0013] According to another aspect of an embodiment of the present application, a vehicle is provided, characterized in that it includes: a controller; and a memory for storing one or more programs, which, when the one or more programs are executed by the controller, enables the controller to implement the above-mentioned method for adjusting the vehicle glass.

[0014] According to another aspect of the embodiment of the present application, a computer-readable storage medium is provided, wherein a computer program is stored in the storage medium, wherein the computer program includes at least one executable instruction, wherein when the executable instruction is executed on the vehicle glass adjustment device / vehicle, the vehicle glass adjustment device / vehicle performs the operation of the vehicle glass adjustment method described above.

[0015] In an embodiment of the present application, real-time traffic information of the road section where the vehicle is located can be obtained during driving to determine whether the vehicle will enter a tunnel at the next moment. If it is determined that the vehicle will enter a tunnel at the next moment, the first predicted light intensity in the tunnel is obtained, and the first target transmittance of the vehicle when entering the tunnel is determined based on the first predicted light intensity. Therefore, before the vehicle suddenly enters the low-light environment in the tunnel from the strong light environment outside the tunnel, the transmittance of the vehicle glass can be adjusted according to the first target transmittance, so that the transmittance of the vehicle glass gradually changes toward the first target transmittance, and finally the transmittance of the vehicle glass when the vehicle enters the tunnel is the first target transmittance, so that the driver will hardly feel the glare caused by the sudden change in light when entering the tunnel, and finally driving safety is improved.

[0016] The above description is only an overview of the technical solution of the embodiment of the present application. In order to more clearly understand the technical means of the embodiment of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the embodiment of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] The accompanying drawings are only used to illustrate the embodiments and are not to be considered as limiting the present application. In addition, the same reference symbols are used to represent the same components throughout the accompanying drawings. In the accompanying drawings:

[0018] Figure 1 A schematic flowchart of steps S210 - S240 of a method for adjusting vehicle glass provided in an embodiment of the present application is shown.

[0019] Figure 2 A schematic flowchart of steps S221 - S223 of a method for adjusting vehicle glass provided in an embodiment of the present application is shown.

[0020] Figure 3 A schematic flowchart of steps S241 - S242 of a method for adjusting vehicle glass provided in an embodiment of the present application is shown.

[0021] Figure 4 A schematic block diagram of the process of steps S243 - S245 of a method for adjusting vehicle glass provided in an embodiment of the present application is shown.

[0022] Figure 5 A schematic flowchart of steps S220-S240 of a method for adjusting vehicle glass provided in an embodiment of the present application is shown.

[0023] Figure 6 A schematic block diagram of the process of steps S241-S243 of a method for adjusting vehicle glass provided in an embodiment of the present application is shown.

[0024] Figure 7 A schematic block diagram of the process of steps S220"-S240" of a method for adjusting vehicle glass provided in an embodiment of the present application is shown.

[0025] Figure 8 A schematic structural diagram of an embodiment of a vehicle glass adjustment device provided in the present application is shown.

[0026] Fig. 9 A schematic structural diagram of an embodiment of the vehicle of the present application is shown. DETAILED DESCRIPTION

[0027] Here, exemplary embodiments will be described in detail, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are only examples of devices and methods consistent with some aspects of the present application as detailed in the attached claims.

[0028] The block diagrams shown in the accompanying drawings are merely functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities may be implemented in software form, or in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.

[0029] The flowcharts shown in the accompanying drawings are only exemplary and do not necessarily include all the contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps can be decomposed, and some operations / steps can be combined or partially combined, so the actual execution order may change according to actual conditions.

[0030] The term "multiple" as used in this application refers to two or more than two. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the related objects are in an "or" relationship.

[0031] When a vehicle enters a tunnel, the driver will experience visual differences due to the large difference in light inside and outside the tunnel. This phenomenon is called the "black hole" effect. Due to the large difference in light inside and outside the tunnel, the driver will feel that the tunnel entrance is dark, while the exit is a dazzling white light. At this time, the eyes need a few seconds to adapt to this change in light and darkness, so as to achieve the adaptability of the human eye to light changes within a certain range and ensure that the human eye can normally obtain visual information. However, this process is prone to safety accidents.

[0032] For example, when a vehicle enters a tunnel, if there happen to be other vehicles at the tunnel entrance (especially slower-moving trucks), then due to the existence of the "black hole" effect, it will be difficult for the vehicle itself to detect other vehicles at the tunnel entrance before and at the moment of entering the tunnel, thus causing a rear-end collision.

[0033] In addition, although in some related technologies, the vehicle may be equipped with a function of automatically adjusting the transmittance of the vehicle glass, so that after the function of automatically adjusting the transmittance of the vehicle glass is turned on, the vehicle glass can change according to the real-time change of light intensity. However, this function is generally used for sunshade or for privacy protection, that is, when used for sunshade, the light intensity data is collected in real time through the sensor, and the transmittance of the windshield is lowered in the road section with strong light (for example, when the sun shines directly on the windshield), and the transmittance of the windshield is restored to normal (that is, the transmittance is adjusted to the maximum); when used for privacy protection, the transmittance of the windshield is directly adjusted to the lowest, and the transmittance of the windshield is restored to normal (that is, the transmittance is adjusted to the maximum). Therefore, even if the function of automatically adjusting the transmittance of the vehicle glass is turned on and the vehicle enters and exits the tunnel, the problem of the "black hole" effect cannot be solved by this function.

[0034] It should be understood that in the above-mentioned related technologies, if the function of automatically adjusting the transmittance of the vehicle glass is turned on, then before the vehicle enters the tunnel, due to the obstruction of the mountain directly in front, there is rarely direct sunlight on the windshield. Therefore, before the vehicle enters the tunnel, the transmittance of the windshield is generally at its maximum, and there is almost no difference between turning on the function of automatically adjusting the transmittance of the vehicle glass and not turning on the function. Therefore, the problem of the "black hole" effect cannot be solved.

[0035] Based on this, combined Figures 1 to 9As shown, the embodiments of the present application respectively provide a method for adjusting vehicle glass, a device 300 for adjusting vehicle glass, a vehicle, a computer-readable storage medium, and a computer program product to solve the above problems. These embodiments will be described in detail below.

[0036] In an exemplary embodiment of the present application, Figure 1 The schematic flow chart of steps S210-S240 of a method for adjusting vehicle glass provided in an embodiment of the present application is shown, and the method is executed by a vehicle terminal. Figure 1 As shown, the method includes steps S210 to S240, which are described in detail as follows:

[0037] Step S210: Obtain real-time traffic information of the road section where the vehicle is located.

[0038] In an exemplary embodiment of the present application, real-time image information of the surroundings of the vehicle can be collected by a camera to obtain real-time road condition information of the road section where the vehicle is located.

[0039] For example, when obtaining real-time traffic information through navigation information, you can open the navigation, enter the destination and navigate, and obtain the distance between the vehicle and the entrance or exit of the tunnel ahead and the length of the tunnel based on the traffic information reported by the navigation.

[0040] In another exemplary embodiment of the present application, real-time traffic information of the road section where the vehicle is located can be obtained through navigation information.

[0041] For example, when obtaining real-time road condition information through real-time image information around the vehicle collected by the camera, after the camera collects image information directly in front of the vehicle, the distance between the vehicle and the entrance or exit of the tunnel ahead can be identified through image comparison.

[0042] It should be understood that the real-time traffic information includes the type of road section the vehicle is traveling on (eg, bridge section, ordinary road section, and tunnel section), the type of road section the vehicle is in, and the distance of the vehicle from the next road section type.

[0043] Step S220: If it is determined based on the real-time traffic information that the vehicle will enter a tunnel at the next moment, a first predicted light intensity in the tunnel is obtained.

[0044] For example, a laser radar can be used to emit a laser beam into the tunnel and measure the degree of scattering of the laser to predict the light intensity in the tunnel and obtain a first predicted light intensity in the tunnel; or a camera can be used to collect image information around and inside the tunnel entrance, and the image can be preprocessed (preprocessing includes background modeling), and then the image light intensity score statistics module can be used to partition the preprocessed image, and the score of each area can be counted, and finally the first predicted light intensity in the tunnel can be output.

[0045] In an exemplary embodiment of the present application, Figure 2 A schematic flow chart of steps S221-S223 of a method for adjusting vehicle glass provided in an embodiment of the present application is shown. Figure 2 As shown, the method for obtaining the first predicted light intensity in the tunnel includes steps S221 to S223, which are described in detail as follows:

[0046] Step S221: If the distance between the vehicle and the tunnel entrance is less than the preset distance, the first actual light intensity received by the vehicle glass is obtained. The vehicle glass is the front windshield of the vehicle. However, the vehicle glass may also be a side window glass or a rear windshield.

[0047] For example, the first actual light intensity received by the vehicle glass may be obtained by a light intensity detection sensor installed in the vehicle glass.

[0048] It should be understood that in many cases, a gantry for speed limit photography will be set up some distance before the tunnel entrance, on which a searchlight will be installed. Therefore, in order to prevent the searchlight from directly shining on the light intensity detection sensor, thereby affecting the accuracy of obtaining the first actual light intensity received by the vehicle glass, the preset distance can be set to be smaller than the distance between the tunnel entrance and the gantry for speed limit photography.

[0049] Step S222: Obtain the illumination intensity of the searchlight in the tunnel.

[0050] It should be understood that in most cases, the light distribution in the tunnel is uniform, that is, if there is a searchlight at the tunnel entrance, then there will be searchlights in almost all of the tunnel; if there is no searchlight at the tunnel entrance, then there is a high probability that there will be almost no searchlights in the entire tunnel. Therefore, it is only necessary to obtain the searchlight intensity of the searchlight at the tunnel entrance to predict the searchlight intensity in the entire tunnel.

[0051] For example, the camera can be used to collect image information at the tunnel entrance, and then determine whether there is a searchlight at the tunnel entrance based on the image information, and then analyze the light intensity of the searchlight.

[0052] Step S223: Determine a first predicted illumination intensity based on the first actual illumination intensity and the searchlight illumination intensity.

[0053] It should be understood that when the length of the tunnel is a fixed value, the light intensity in the tunnel generally depends on the light intensity outside the tunnel entrance and the light intensity of the searchlight inside the tunnel, and the length of the tunnel can be directly obtained through the real-time traffic information in the navigation information. Therefore, after obtaining the first actual light intensity outside the tunnel entrance and the light intensity of the searchlight inside the tunnel, the light intensity of the tunnel can be predicted, and finally the first predicted light intensity in the tunnel can be obtained.

[0054] In an exemplary embodiment of the present application, after the first predicted light intensity in the corresponding tunnel is obtained for the first time, the first predicted light intensity corresponding to the tunnel can be stored in the vehicle or in the cloud. When the first predicted light intensity in the tunnel is obtained next time, it can be obtained by analyzing the historical data of the first predicted light intensity and the first actual light intensity outside the tunnel.

[0055] Step S230: Determine a first target light transmittance of the vehicle glass when the vehicle enters a tunnel based on the first predicted light intensity.

[0056] In an exemplary embodiment of the present application, after obtaining the first predicted light intensity in the tunnel, the first predicted light intensity data can be preprocessed through data filtering, outlier processing, and data normalization steps, and the first target transmittance of the corresponding vehicle glass can be calculated based on the neural network model.

[0057] For example, the neural network model can adopt a multi-layer perceptron model, which includes an input layer, a hidden layer, and an output layer. Among them, considering the impact of temperature changes on the transmittance of vehicle glass, the input layer can be 2 neurons (light intensity and temperature). The hidden layer is designed to be 2 layers, which can provide sufficient nonlinear expression capabilities while maintaining computational efficiency. It is suitable for most problems with high complexity and can capture the complex relationship between input features. The first hidden layer has 32 neurons and the second hidden layer has 16 neurons. The first hidden layer is usually designed with more neurons to capture the complex relationship of input features. The number of neurons in the second hidden layer can be appropriately reduced, usually half the number of neurons in the first hidden layer. The first hidden layer selects more neurons to capture the complex relationship of input features, and the subsequent hidden layers gradually reduce the number of neurons to gradually extract higher-level features while reducing computational complexity. The output layer has 9 neurons, which can be 20% window transmittance, 30% window transmittance, 40% window transmittance, 50% window transmittance, 60% window transmittance, 70% window transmittance, 80% window transmittance, 90% window transmittance, and 100% window transmittance. The hidden layer activation function selects the Sigmoid function, which maps the input value to the range of (0,1). For very large positive inputs, the output is close to 1; for very large negative inputs, the output is close to 0. The Sigmoid function introduces nonlinear characteristics, allowing the neural network to learn complex patterns and is smooth over the entire input range, which helps to more stable gradient propagation. The output layer activation function selects the Softmax function, which maps the input vector to a probability distribution, the output value is between (0,1), and the sum of all output values ​​is 1. The Softmax activation function has probability distribution and normalization characteristics, and is suitable for multi-classification problems.

[0058] Calculation process from input layer to first hidden layer: The 32 neurons in the first hidden layer perform linear transformation on the 2 neurons in the input layer. Each neuron calculates the weighted sum of the input neuron features and adds a bias term. i ranges from 1 to 2, j ranges from 1 to 32, and for the (j)th neuron, the calculation formula is:

[0059]

[0060] y(j) is the result after linear transformation, w(i,j) is the weight, x(i) is the data feature of the input neuron, and b(j) is the bias term. The result after linear transformation will be nonlinearly activated through the Sigmoid activation function. The formula of the Sigmoid activation function is:

[0061]

[0062] z(j) is the result after nonlinear activation. The calculation process from the first hidden layer to the second hidden layer: The 16 neurons in the second hidden layer use the above formula to perform linear transformation and nonlinear activation on the 32-dimensional data features output by the first hidden layer. The calculation process from the second hidden layer to the output layer: The output layer uses the above formula to perform linear transformation on the output result of the second hidden layer. The transformed result is a(k), where k ranges from 1 to 9. The result a(k) after linear transformation will be nonlinearly activated through the Softmax activation function. The formula of the Softmax activation function is:

[0063]

[0064] The obtained pk is the corresponding window transmittance probability, p1 is the probability of 20% window transmittance, p2 is the probability of 30% window transmittance, and so on, p9 is the probability of 100% window transmittance. The loss function uses multi-classification cross entropy loss. The cross entropy loss can directly measure the difference between the predicted probability distribution and the true probability distribution, and is suitable for multi-classification problems. Among them, there are 9 different categories of window transmittance, so multi-classification cross entropy loss is the most appropriate. The optimizer uses the Adam optimization algorithm. The Adam optimizer combines the advantages of momentum and adaptive learning rate adjustment, can quickly converge to a better solution, and is insensitive to the selection of hyperparameters, and has good robustness. In addition, the selection of the Adam optimizer can improve the training efficiency and performance of the model. The model is trained using the training data set. After each training, the performance of the model is evaluated using the validation data set, and the trained multi-layer perceptron model is deployed to the vehicle terminal.

[0065] In another exemplary embodiment of the present application, the first target transmittance corresponding to the first predicted light intensity can be obtained through a pre-calibrated mapping table of light intensity-vehicle glass transmittance.

[0066] For example, light intensity <500lux: transparency is 100% (completely transparent); 500lux≤light intensity<1000lux: transparency is 80%; 1000lux≤light intensity<2000lux: transparency is 60%; 2000lux≤light intensity<3000lux: transparency is 40%; light intensity≥3000lux: transparency is 20% (darkest). In addition, considering the effect of temperature on the regulation of vehicle glass, the temperature regulation logic is based on the light intensity regulation logic, temperature <20℃: transparency increases by 10% (but not more than 100%); 20℃≤temperature<30℃: transparency remains unchanged; temperature≥30℃: transparency decreases by 10% (but not less than 20%).

[0067] Step S240: adjusting the transmittance of the current vehicle glass based on the first target transmittance, so that the transmittance of the vehicle glass gradually changes to the first target transmittance.

[0068] In the present application, the vehicle glass adjustment method can obtain real-time road condition information of the road section where the vehicle is located during driving to determine whether the vehicle will enter the tunnel at the next moment. If it is determined that the vehicle will enter the tunnel at the next moment, the first predicted light intensity in the tunnel is obtained, and the first target transmittance of the vehicle when entering the tunnel is determined according to the first predicted light intensity. Therefore, before the vehicle suddenly enters the low-light environment in the tunnel from the strong light environment outside the tunnel, the transmittance of the vehicle glass can be adjusted according to the first target transmittance, so that the transmittance of the vehicle glass gradually changes toward the first target transmittance, and finally the transmittance of the vehicle glass when the vehicle enters the tunnel is the first target transmittance, so that the driver will hardly feel the glare caused by the sudden change of light when entering the tunnel, and finally the driving safety is improved.

[0069] It should be understood that the principles of adjusting the transmittance of vehicle glass include: 1. Electrochromic principle. Electrochromic materials change color under the action of electric field, thereby changing their transmittance. For example: when voltage is applied, ions or electrons in the material migrate, causing the absorption spectrum of the material to change, thereby changing its transmittance, and by adjusting the magnitude and direction of the voltage, the color depth and transmittance of the material can be controlled. 2. Thermochromic principle: Thermochromic materials change color when the temperature changes, thereby changing their transmittance. By heating or cooling the coating, the temperature of the material can be changed, thereby triggering color changes and adjusting the transmittance. 3. Photosensitive principle: Photosensitive materials will undergo chemical reactions or physical changes under light conditions, resulting in changes in color or transmittance. By controlling the target light intensity or light exposure time, the reaction degree of the photosensitive material can be adjusted, thereby changing the transmittance of the car window.

[0070] In an exemplary embodiment of the present application, Figure 3 A schematic flow chart of steps S221-S223 of a method for adjusting vehicle glass provided in an embodiment of the present application is shown. Figure 3 As shown, the method for adjusting the transmittance of the current vehicle glass based on the first target transmittance so that the transmittance of the vehicle glass gradually changes to the first target transmittance includes steps S241 to S242, which are described in detail as follows:

[0071] Step S241: Obtain the target time required for the vehicle to enter the tunnel.

[0072] For example, the target time required for the vehicle to enter the tunnel can be calculated based on the vehicle speed and the distance between the vehicle and the tunnel entrance.

[0073] Step S242: If the target time is greater than the preset time, the transmittance of the vehicle glass is uniformly changed to a first target transmittance based on the target time.

[0074] In an exemplary embodiment of the present application, the preset time can be determined according to the difference between the transmittance of the vehicle glass and the first target transmittance when the vehicle calculates the first target transmittance. The larger the difference, the longer the preset time can be set, and the smaller the difference, the smaller the preset time can be set. For example, the preset time is 3S, 4S or 5S.

[0075] It should be understood that the shorter the target time required for the vehicle to enter the tunnel, the greater the rate of change of transmittance when the transmittance of the vehicle glass is uniformly changed to the first target transmittance. At this time, the "black hole" effect may still occur due to the large difference in light brightness. Therefore, to avoid this situation, it can be determined whether the target time is greater than the preset time. If it is greater, it means that there is enough time for the vehicle glass to gradually change the transmittance of the vehicle glass to the first target transmittance at a low rate. Then, when the transmittance of the vehicle glass is uniformly changed to the first target transmittance based on the target time, the light seen by the driver slowly changes from bright to dark, so that the driver's eyes can adapt to this change in brightness.

[0076] In an exemplary embodiment of the present application, Figure 4 A schematic flow chart of steps S243-S245 of a method for adjusting vehicle glass provided in an embodiment of the present application is shown. Figure 4 As shown, the method for adjusting the transmittance of the current vehicle glass based on the first target transmittance so that the transmittance of the vehicle glass gradually changes to the first target transmittance also includes steps S243 to S245, which are described in detail as follows:

[0077] Step S243: If the target time is less than the preset time, the target time is divided into a first target time and a second target time, and the first target time is less than the second target time.

[0078] It should be understood that if the target time is less than the preset time, it means that the vehicle glass cannot gradually change the transmittance of the vehicle glass to the first target transmittance at a low rate. In this case, the target time can be divided into two sections to adjust the transmittance of the vehicle glass at different rates.

[0079] Step S244: Based on the first target time, the transmittance of the vehicle glass is uniformly changed at a first speed value to a first transmittance threshold.

[0080] For example, when the first target transmittance is less than the transmittance of the vehicle glass when the vehicle calculates the first target transmittance, the first transmittance threshold is less than the average value of the transmittance of the vehicle glass when the vehicle calculates the first target transmittance and the first target transmittance.

[0081] In an exemplary embodiment of the present application, the transmittance of the vehicle glass can be adjusted once by a relatively large first speed value, so that the transmittance of the vehicle glass can be gradually changed to the first target transmittance at a uniform speed at a low rate in the subsequent adjustment. In this process, even if the light and dark changes are large, the vehicle is still a certain distance away from the tunnel entrance before the transmittance of the vehicle glass is adjusted toward the first target transmittance, and generally speaking, the road section before the tunnel is generally a straight road, so there will be no major safety hazards.

[0082] Step S245: Based on the second target time, the transmittance of the vehicle glass is uniformly changed from the first transmittance threshold to the first target transmittance at a second speed value; wherein the first speed value is greater than the second speed value.

[0083] For example, when the target time is 3S, the first target time can be determined as 1S and the second target time can be determined as 2S. Correspondingly, after the first target transmittance of the vehicle glass is determined (for example, the first target transmittance is 60%) and before the transmittance is adjusted, if the transmittance of the vehicle glass is 100%, the transmittance of the vehicle glass can be adjusted to 70% within the first target time; and then within the second target time, the transmittance of the vehicle glass can be adjusted to 60%.

[0084] It should be understood that when the target time is less than the preset time, the transmittance of the vehicle glass can be quickly changed to the first transmittance threshold value at a larger first speed value within the first target time before the vehicle enters the tunnel. At this time, since the vehicle is still a certain distance away from the tunnel entrance during the process of adjusting the transmittance of the vehicle glass to the first transmittance threshold, and generally speaking, the road section before the tunnel is generally a straight road, and thus no major safety hazard will occur; and then the transmittance of the vehicle glass is uniformly changed from the first transmittance threshold value to the first target transmittance at a smaller second speed value, thereby reducing the probability of a "black hole" effect occurring when the driver enters the tunnel.

[0085] In an exemplary embodiment of the present application, Figure 5 A schematic flow chart of steps S220-S240 of a method for adjusting vehicle glass provided in an embodiment of the present application is shown. Figure 5 As shown, when the vehicle enters the tunnel, in order to ensure the driving sight of the vehicle, the vehicle glass adjustment method also includes steps S220ˋ-S240ˋ, which are described in detail as follows:

[0086] Step S220: If it is detected that the vehicle is located in a tunnel, a second actual light intensity of the vehicle is obtained in real time.

[0087] For example, it is possible to determine whether the vehicle is located in a tunnel based on real-time traffic information, or to determine whether the vehicle is located in a tunnel based on image data collected by a camera of the vehicle.

[0088] For example, the second actual light intensity of the vehicle may be acquired according to a light intensity detection sensor installed on the vehicle.

[0089] Step S230: Correcting the first target transmittance based on the second actual light intensity to obtain a second target transmittance.

[0090] It should be understood that since the first target transmittance is a predicted value, after the vehicle enters the tunnel, the transmittance of the vehicle glass can also be adjusted according to the second actual light intensity received by the vehicle, so as to reduce the probability of a "black hole" effect when the driver enters the tunnel while ensuring the vehicle's driving vision in the tunnel.

[0091] Step S240: adjusting the transmittance of the vehicle glass based on the second target transmittance so that the transmittance of the vehicle after entering the tunnel is the second target transmittance.

[0092] It should be understood that in order to avoid the "black hole" effect that occurs the moment the vehicle enters the tunnel, the transmittance of the vehicle glass is adjusted based on the first target transmittance and the transmittance of the vehicle glass is gradually reduced. Then, when the vehicle enters the tunnel, the transmittance of the vehicle glass can be corrected according to the second actual light intensity received by the vehicle to increase the transmittance of the vehicle glass, thereby obtaining the second target transmittance and ultimately ensuring the driver's line of sight.

[0093] In an exemplary embodiment of the present application, Figure 6 A schematic flow chart of steps S241-S243 of a method for adjusting vehicle glass provided in an embodiment of the present application is shown. Figure 6 As shown, when a vehicle enters a tunnel, in order to ensure the driving sight of the vehicle while preventing the searchlight in the tunnel from directly shining into the driver's eyes, thereby causing dazzle to the driver, the vehicle glass adjustment method also includes steps S241-S243, which are described in detail as follows:

[0094] Step S241: If it is detected that there is a searchlight in the tunnel, the direct path of the light in the tunnel is obtained.

[0095] For example, the vehicle's camera can be used to capture the position of the searchlight and the direction of the searchlight, thereby obtaining the direct path of the light in the tunnel.

[0096] It should be understood that the searchlights in the tunnel can be lights installed on the tunnel wall or headlights of other vehicles. As long as the light source is not natural light in the tunnel, it can be understood as a searchlight in the tunnel.

[0097] Step S242: Divide the vehicle glass into a direct light area and a non-direct light area based on the direct light path.

[0098] In an exemplary embodiment of the present application, after the vehicle glass is divided into a direct light area and a non-direct light area, the light transmittance of the direct light area and the light transmittance of the non-direct light area can be controlled and adjusted separately. The specific positions of the direct light area and the non-direct light area can be changed synchronously with the direct light path.

[0099] It should be understood that, generally speaking, the illumination angles of the searchlights in the tunnel are almost the same, so that when the vehicle maintains a straight line, the direct lighting area and the non-direct lighting area are almost fixed, which makes it easier to control and adjust the corresponding light transmittance separately.

[0100] Step S243: adjusting the non-light-direct area based on the second target light transmittance, and adjusting the light-direct area based on the third target light transmittance; wherein the third target light transmittance is smaller than the second target light transmittance.

[0101] It should be understood that, in order to avoid direct light hitting the eyes of the driver and passengers, the light transmittance of the light-directed area can be adjusted to a third target light transmittance that is less than the second target light transmittance, and at the same time, the light transmittance of the non-light-directed area can be adjusted to the second target light transmittance to ensure the driver's sight. Therefore, when a vehicle is driving in a tunnel, even if the driver's eyes are hit by the strong light of the searchlight, the zoning control of the vehicle glass can be used to avoid glare to the driver and ensure the driving sight.

[0102] In an exemplary embodiment of the present application, Figure 7 A schematic flow chart of steps S220-S240 of a method for adjusting vehicle glass provided in an embodiment of the present application is shown. Figure 7 As shown, in order to avoid dazzling the driver and passengers with strong light when the vehicle exits the tunnel, the vehicle glass adjustment method also includes steps S220ˋˋ-S240ˋˋ, which are described in detail as follows:

[0103] Step S220: If it is determined that the vehicle will leave the tunnel at the next moment, a second predicted light intensity outside the tunnel is obtained.

[0104] For example, a laser radar can be used to emit a laser beam into the tunnel and measure the degree of scattering of the laser to predict the light intensity outside the tunnel and obtain a second predicted light intensity outside the tunnel; or a camera can be used to collect image information around and outside the tunnel exit, and the image can be preprocessed (preprocessing includes background modeling), and then the image light intensity score statistics module can be used to partition the preprocessed image, and the score of each area can be counted, and finally the second predicted light intensity outside the tunnel can be output.

[0105] Step S230: Determine a fourth target transmittance of the vehicle glass based on the second predicted light intensity.

[0106] In an exemplary embodiment of the present application, the method for determining the fourth target transmittance of the vehicle glass based on the second predicted light intensity can refer to the method for determining the first target transmittance of the vehicle glass based on the first predicted light intensity, which will not be repeated here.

[0107] It should be understood that in order to avoid glare on the driver and passengers caused by strong light, the fourth target light transmittance is generally smaller than the second target light transmittance.

[0108] Step S240: adjusting the vehicle glass based on the fourth target transmittance, so that the transmittance of the vehicle glass gradually changes to the fourth target transmittance before exiting the tunnel.

[0109] It should be understood that before exiting the tunnel, the vehicle glass is gradually adjusted from the second target transmittance toward the fourth target transmittance so that the transmittance of the vehicle glass gradually decreases, thereby avoiding the vehicle being dazzled by strong light at the moment of exiting the tunnel.

[0110] In addition, after the vehicle exits the tunnel, the light transmittance of the vehicle glass can be gradually restored to the light transmittance before entering the tunnel to ensure driving visibility.

[0111] In the present application, firstly, the method for adjusting the vehicle glass can obtain a first predicted light intensity in the tunnel when determining that the vehicle will enter the tunnel at the next moment, and determine a first target transmittance when the vehicle enters the tunnel according to the first predicted light intensity, and then, before the vehicle suddenly enters the low-light environment in the tunnel from the high-light environment outside the tunnel, the transmittance of the vehicle glass can be adjusted according to the first target transmittance, so that the transmittance of the vehicle glass gradually changes toward the first target transmittance, and finally the transmittance of the vehicle glass when the vehicle enters the tunnel is the first target transmittance, so that the driver will hardly feel the glare caused by the sudden change in light when entering the tunnel.

[0112] Then, the vehicle glass adjustment method can also correct the transmittance of the vehicle glass according to the second actual light intensity received by the vehicle after the vehicle enters the tunnel, so as to increase the transmittance of the vehicle glass, and then obtain the second target transmittance, and finally ensure the driver's sight. At the same time, in order to prevent the searchlight in the tunnel from directly shining into the driver's eyes and causing dazzle to the driver, the vehicle glass can be divided into a non-light direct area and a light direct area, and then the transmittance of the light direct area is adjusted to a third target transmittance that is less than the second target transmittance, and at the same time, the transmittance of the non-light direct area is adjusted to the second target transmittance, so as to avoid dazzle to the driver and ensure the driver's sight.

[0113] Finally, before exiting the tunnel, the vehicle glass is gradually adjusted from the second target transmittance toward the fourth target transmittance, so that the transmittance of the vehicle glass is gradually reduced, thereby avoiding the vehicle being dazzled by strong light at the moment of exiting the tunnel. After the vehicle exits the tunnel, the transmittance of the vehicle glass is gradually restored to the transmittance before entering the tunnel to ensure driving vision.

[0114] In summary, the vehicle glass adjustment method can ensure that the driver will hardly feel dazzled when entering or exiting a tunnel or driving in a tunnel, thereby ultimately improving driving safety.

[0115] Figure 8 FIG. 3 is a schematic diagram showing a structure of a vehicle glass adjustment device 300 provided in an embodiment of the present application. Figure 8 As shown, in this embodiment, a vehicle glass adjustment device 300 is also provided, which is used to execute the vehicle glass adjustment method in the above embodiment.

[0116] The vehicle glass adjustment device 300 includes a first acquisition module 310, and the first acquisition module 310 is used to acquire real-time road condition information of the road section where the vehicle is located.

[0117] The vehicle glass adjustment device 300 further includes a second acquisition module 320, which is used to acquire a first predicted light intensity in the tunnel if it is determined based on the real-time road condition information that the vehicle will enter the tunnel at the next moment.

[0118] The vehicle glass adjustment device 300 further includes a determination module 330 , which is configured to determine a first target light transmittance of the vehicle glass based on the first predicted light intensity.

[0119] The vehicle glass adjustment device 300 further includes an adjustment module 340, which is used to adjust the vehicle glass based on a first target transmittance, so that the transmittance of the vehicle glass is the first target transmittance when the vehicle enters a tunnel.

[0120] The vehicle glass adjustment device 300 provided in the above embodiment and the vehicle glass adjustment 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.

[0121] Fig. 9 A schematic diagram of the structure of an embodiment of the vehicle of the present application is shown, which shows a schematic diagram of the structure of a computer system of the vehicle suitable for implementing the embodiment of the present application. The specific embodiment of the present application does not limit the specific implementation of the vehicle.

[0122] See also Fig. 9 As shown, the vehicle includes: a controller; a memory for storing one or more programs, and when the one or more programs are executed by the controller, the above-mentioned method for adjusting the vehicle glass is executed.

[0123] Please continue reading Fig. 9 As shown, the computer system 500 of the vehicle includes a central processing unit (CPU) 501, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 502 or the program loaded from the storage part 508 to the random access memory (RAM) 503, such as executing the method in the above embodiment. In RAM 503, various programs and data required for system operation are also stored. CPU 501, ROM 502 and RAM 503 are connected to each other through bus 504. Input / output (I / O) interface 505 is also connected to bus 504.

[0124] The following components are connected to the I / O interface 505: an input section 506 including a keyboard, a mouse, etc.; an output section 507 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 508 including a hard disk, etc.; and a communication section 509 including a network interface card such as a LAN (Local Area Network) card, a modem, etc. The communication section 509 performs communication processing via a network such as the Internet. A drive 510 is also connected to the I / O interface 505 as needed. A removable medium 511, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 510 as needed so that a computer program read therefrom is installed into the storage section 508 as needed.

[0125] 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 509, and / or installed from a removable medium 511. When the computer program is executed by a central processing unit (CPU) 501, various functions defined in the system of the present application are executed.

[0126] Another aspect of the present application provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the above vehicle glass adjustment method is implemented. The computer-readable storage medium may be included in the vehicle described in the above embodiment, or may exist independently without being assembled into the vehicle.

[0127] Another aspect of the present application also provides a computer program product or a computer program, which includes at least one executable instruction, and when the executable instruction is run on the vehicle glass adjustment device 300 / vehicle, the vehicle glass adjustment device 300 / vehicle executes the above vehicle glass adjustment method.

[0128] 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 storage medium can be any tangible medium containing or storing a program, which can be used by an instruction execution system, device or device or used in combination with it. In the present application, a computer-readable signal medium can include a data signal propagated in a baseband or as a 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 electromagnetic signals, optical signals, 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.

[0129] 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 than 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.

[0130] The units involved in the embodiments described in this application may be implemented by software or hardware, and the units described may also be set in a processor. The names of these units do not, in some cases, constitute limitations on the units themselves.

[0131] According to one aspect of an embodiment of the present application, a computer system is also provided, including a central processing unit (CPU), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) or a program loaded from a storage portion into a random access memory (RAM), such as executing the method in the above embodiment. In RAM, various programs and data required for system operation are also stored. CPU, ROM and RAM are connected to each other via a bus. An input / output (I / O) interface is also connected to the bus.

[0132] The following components are connected to the I / O interface: an input part including a keyboard, a mouse, etc.; an output part including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker; a storage part including a hard disk, etc.; and a communication part including a network interface card such as a LAN (Local Area Network) card, a modem, etc. The communication part performs communication processing via a network such as the Internet. A drive is also connected to the I / O interface as needed. Removable media, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., are installed on the drive as needed so that the computer program read therefrom is installed into the storage part as needed.

[0133] The above content is only a preferred exemplary embodiment of the present application and is not intended to limit the implementation scheme of the present application. A person skilled in the art can easily make corresponding changes or modifications based on the main concept and spirit of the present application. Therefore, the scope of protection of the present application shall be based on the scope of protection required by the claims.

Claims

1. A method for adjusting vehicle glass, characterized in that: The method comprises: Obtain real-time traffic information of the road section where the vehicle is located; If it is determined based on the real-time traffic information that the vehicle enters a tunnel at the next moment, obtaining a first predicted light intensity in the tunnel; Determining a first target light transmittance of the vehicle glass when the vehicle enters the tunnel based on the first predicted light intensity; The transmittance of the current vehicle glass is adjusted based on the first target transmittance, so that the transmittance of the vehicle glass gradually changes to the first target transmittance.

2. The method according to claim 1, characterized in that The method for obtaining the first predicted light intensity in the tunnel comprises: If the distance between the vehicle and the tunnel entrance is less than a preset distance, obtaining a first actual light intensity received by the vehicle glass; Obtaining the illumination intensity of the searchlight in the tunnel; The first predicted illumination intensity is determined based on the first actual illumination intensity and the searchlight illumination intensity.

3. The method according to claim 1, characterized in that The method for adjusting the transmittance of the vehicle glass based on the first target transmittance includes: Obtaining a target time required for the vehicle to enter the tunnel; If the target time is greater than a preset time, the transmittance of the vehicle glass is uniformly changed to the first target transmittance based on the target time.

4. The method according to claim 3, characterized in that The method comprises: If the target time is less than the preset time, dividing the target time into a first target time and a second target time, the first target time being less than the second target time; Based on the first target time, changing the transmittance of the vehicle glass to a first transmittance threshold at a first speed value; Based on the second target time, the transmittance of the vehicle glass is uniformly changed from the first transmittance threshold to the first target transmittance at a second speed value; wherein the first speed value is greater than the second speed value.

5. The method according to claim 1, characterized in that The method further comprises: If it is detected that the vehicle is located in the tunnel, obtaining a second actual light intensity of the vehicle in real time; Correcting the first target transmittance based on the second actual light intensity to obtain a second target transmittance; The transmittance of the vehicle glass is adjusted based on the second target transmittance so that the transmittance of the vehicle after entering the tunnel is the second target transmittance.

6. The method according to claim 5, characterized in that The method further comprises: If it is detected that there is a searchlight in the tunnel, obtaining a direct path of the light in the tunnel; Dividing the vehicle glass into a direct light area and a non-direct light area based on the direct light path; The non-light direct area is adjusted based on the second target light transmittance, and the light direct area is adjusted based on a third target light transmittance; wherein the third target light transmittance is smaller than the second target light transmittance.

7. The method according to claim 1, characterized in that The method further comprises: If it is determined that the vehicle leaves the tunnel at the next moment, obtaining a second predicted light intensity outside the tunnel; determining a fourth target light transmittance of the vehicle glass based on the second predicted light intensity; The vehicle glass is adjusted based on the fourth target transmittance, so that the transmittance of the vehicle glass gradually changes to the fourth target transmittance before exiting the tunnel.

8. A vehicle glass adjustment device, characterized in that: The device comprises: The first acquisition module acquires the real-time traffic information of the road section where the vehicle is located; A second acquisition module, if it is determined based on the real-time traffic information that the vehicle enters a tunnel at a next moment, then acquires a first predicted light intensity in the tunnel; a determination module, which determines a first target transmittance of the vehicle glass based on the first predicted light intensity; An adjustment module adjusts the vehicle glass based on the first target transmittance so that the transmittance of the vehicle glass is the first target transmittance when the vehicle enters the tunnel.

9. A vehicle, characterized in that: include: Controller; A memory for storing one or more programs, which, when executed by the controller, enables the controller to implement the method for adjusting vehicle glass according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, which includes at least one executable instruction. When the executable instruction is run on the vehicle glass adjustment device / vehicle, the vehicle glass adjustment device / vehicle performs the operation of the vehicle glass adjustment method as described in any one of claims 1 to 7.