Vehicle control method, vehicle and storage medium
By detecting the precipitation in the vehicle environment and dynamically adjusting the starry sky top display, the problem of the inability to interact in the starry sky top in the existing technology is solved, matching with the environmental precipitation situation is achieved, and user experience is improved.
Patent Information
- Application Number
- CN202411374377.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-29
- Publication Date
- 2024-12-06
AI Technical Summary
The existing vehicle starry sky roof lacks the ability to interact with the environment in which the vehicle is located, resulting in poor user experience and inability to dynamically reflect precipitation.
By detecting the precipitation in the environment in which the vehicle is located, determining the number and type of target dynamic patterns based on the current precipitation, and controlling the top of the starry sky to display these patterns within the preset period to match the ambient precipitation.
It enhances the interaction between the vehicle and the environment, improves the user experience, effectively reflects the intensity of precipitation through dynamic patterns, and provides an immersive lighting experience.
Smart Images

Figure CN119078651A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of vehicle technology, and more specifically, to a vehicle control method, a vehicle, and a storage medium in the field of vehicle technology. Background Art
[0002] The starry sky roof of the vehicle is composed of multiple display points. Each display point is achieved by integrating one end of the optical fiber on the back of the roof and using the optical fiber to transmit the light source, so that the light forms a bright spot at the end of the optical fiber. The numerous display points of the starry sky roof work together to provide users with an immersive in-car lighting experience.
[0003] However, the starry sky ceilings in related technologies are mostly limited to the display of preset fixed patterns and lack the ability to interact with the vehicle's environment, resulting in a poor user experience. Summary of the invention
[0004] The present application provides a vehicle control method, a vehicle and a storage medium, which can enable a target dynamic pattern to effectively reflect the current precipitation amount in the vehicle's environment, enhance the interaction ability between the vehicle and the vehicle's environment, and effectively improve the user experience.
[0005] In a first aspect, a vehicle control method is provided, wherein the vehicle is provided with a starry sky roof, the method comprising:
[0006] If precipitation is detected in the environment where the vehicle is located, the current precipitation amount of the environment where the vehicle is located is obtained;
[0007] determining a plurality of target dynamic patterns according to the current precipitation, wherein the number of the target dynamic patterns is positively correlated with the current precipitation;
[0008] In the preset period, the starry sky top is controlled to display multiple target dynamic patterns.
[0009] Through the above scheme, when precipitation is detected in the environment where the vehicle is located, the current precipitation of the vehicle's environment is further obtained. Then, multiple target dynamic patterns are determined according to the current precipitation, so that the number of target dynamic patterns is positively correlated with the current precipitation. In other words, the greater the current precipitation, the greater the number of target dynamic patterns; the smaller the current precipitation, the smaller the number of target dynamic patterns. Finally, within a preset period, the starry sky top is controlled to display multiple target dynamic patterns, so that the target dynamic patterns can effectively reflect the current precipitation of the vehicle's environment. In this way, the interaction ability between the vehicle and the environment in which the vehicle is located can be enhanced, and the user experience can be effectively improved.
[0010] In combination with the first aspect, in some possible implementations, if precipitation is detected in the vehicle's environment, the current precipitation amount of the vehicle's environment is obtained, including: if precipitation is detected in the vehicle's environment, an external environment image captured by the vehicle's camera is obtained; a first current precipitation amount and a first weight of the first current precipitation amount are determined based on the external environment image captured by the vehicle's camera; a second current precipitation amount and a second weight of the second current precipitation amount are obtained based on the vehicle's precipitation sensor; and a weighted sum is performed based on the first current precipitation amount, the first weight, the second current precipitation amount, and the second weight to obtain the current precipitation amount.
[0011] Through the above scheme, the precipitation situation can be intuitively identified by first using the external environment image collected by the camera, thereby determining the first current precipitation amount and the first weight of the first current precipitation amount. Then, the second current precipitation amount collected by the precipitation sensor and the second weight of the second current precipitation amount are obtained. By fusing the above data in a weighted summation manner, the current precipitation amount can be obtained. In this way, by combining the data of the camera and the precipitation sensor to determine the current precipitation amount of the vehicle's environment, the accuracy and reliability of the current precipitation amount can be improved.
[0012] In combination with the first aspect and the above-mentioned implementation methods, in some possible implementation methods, if precipitation is detected in the environment in which the vehicle is located, before obtaining the current precipitation amount of the environment in which the vehicle is located, it includes: obtaining an external environment image captured by a camera of the vehicle; determining first precipitation status detection information based on the external environment image captured by the camera of the vehicle; if the first precipitation status detection information indicates precipitation, obtaining second precipitation status detection information collected by a precipitation sensor of the vehicle; if the second precipitation status detection information indicates precipitation, determining that precipitation exists in the environment in which the vehicle is located.
[0013] Through the above scheme, the external environment image is first collected by the vehicle's camera, and the first precipitation state detection information is determined accordingly. When the first precipitation state detection information indicates precipitation, the second precipitation state detection information collected by the precipitation sensor is further obtained to double verify whether there is precipitation in the vehicle's environment. This mechanism can also effectively avoid misjudgment caused by environmental factors or its own failure of a single sensor, and enhance the accuracy of determining whether there is precipitation in the vehicle's environment.
[0014] In combination with the first aspect and the above-mentioned implementation methods, in some possible implementation methods, multiple target dynamic patterns are determined according to the current precipitation, including: determining the target dynamic pattern according to the current precipitation and the mapping relationship between the precipitation and the dynamic pattern; determining the number of target dynamic patterns according to the current precipitation and the mapping relationship between the precipitation and the number, wherein the number of target dynamic patterns is multiple.
[0015] Through the above scheme, according to the mapping relationship between precipitation and dynamic patterns, the target dynamic pattern that best suits the current precipitation conditions can be intelligently selected, thereby improving the pertinence and relevance of the target dynamic pattern display. At the same time, according to the mapping relationship between precipitation and quantity, the number of target dynamic patterns can be determined, so that the target dynamic patterns subsequently displayed by the starry sky top can better reflect the changes in precipitation intensity.
[0016] In combination with the first aspect and the above-mentioned implementation methods, in some possible implementation methods, multiple target dynamic patterns are determined based on the current precipitation, including: determining the target display strategy based on the current precipitation and the mapping relationship between the precipitation and the display strategy, wherein the target display strategy includes the target dynamic pattern and the number of target dynamic patterns.
[0017] Through the above scheme, according to the mapping relationship between precipitation and display strategy, the target display strategy that best suits the current precipitation conditions can be intelligently selected. The target display strategy includes the target dynamic pattern and the number of target dynamic patterns, which can directly provide a data basis for subsequent starry sky top display and simplify the process of determining the target dynamic pattern and the number of target dynamic patterns.
[0018] In combination with the first aspect and the above-mentioned implementation methods, in some possible implementation methods, within a preset period, the starry sky top is controlled to display multiple target dynamic patterns, including: within the preset period, determining the duration of each target dynamic pattern among the multiple target dynamic patterns; determining the layout information of each target dynamic pattern on the starry sky top based on the duration of each target dynamic pattern; controlling the starry sky top to display multiple target dynamic patterns based on the duration and layout information of each target dynamic pattern.
[0019] Through the above scheme, by determining the duration of each target dynamic pattern within a preset period and further determining the layout information of each target dynamic pattern, a data basis is provided for the subsequent starry sky top display. Considering the duration and layout information of each target dynamic pattern, controlling the starry sky top to display multiple target dynamic patterns can avoid the position conflicts that may exist in the starry sky top display process for multiple target dynamic patterns, while providing users with a good visual experience.
[0020] In combination with the first aspect and the above-mentioned implementation methods, in some possible implementation methods, the starry sky top is controlled to display multiple target dynamic patterns according to the duration and layout information of each target dynamic pattern, including: for any one of the multiple target dynamic patterns to be displayed, if the current moment is the same as the starting moment of the duration of the dynamic pattern to be displayed, then according to the layout information of the target dynamic pattern, multiple display points of the dynamic pattern to be displayed are determined on the starry sky top; during the duration of the dynamic pattern to be displayed, the color and / or brightness of the multiple display points of the dynamic pattern to be displayed are controlled so that the multiple display points of the dynamic pattern to be displayed produce a dynamic display effect.
[0021] Through the above scheme, when the current moment is the same as the starting moment of the duration of the dynamic pattern to be displayed, the display points can be determined according to the layout information of the dynamic pattern to be displayed, and the color and / or brightness of these display points can be dynamically adjusted during the duration of the dynamic pattern to be displayed, thereby generating a variety of dynamic effects and providing users with a good visual experience.
[0022] In combination with the first aspect and the above-mentioned implementation methods, in some possible implementation methods, the starry sky top is controlled to display multiple target dynamic patterns according to the duration and layout information of each target dynamic pattern, including: for any one of the multiple target dynamic patterns to be displayed, if the current moment is the same as the starting moment of the duration of the dynamic pattern to be displayed, then according to the layout information of the target dynamic pattern, multiple display points of the dynamic pattern to be displayed are determined on the starry sky top; during the duration of the dynamic pattern to be displayed, the multiple display points of the dynamic pattern to be displayed are lit up in sequence so that the multiple display points of the dynamic pattern to be displayed produce a dynamic display effect.
[0023] Through the above scheme, when the current moment is the same as the starting moment of the duration of the dynamic pattern to be displayed, the display points can be determined according to the layout information of the dynamic pattern to be displayed, and these display points can be lit up in sequence during the duration of the dynamic pattern to be displayed, thereby generating a continuous dynamic effect of display point brightness changes, providing users with a good visual experience.
[0024] In combination with the first aspect and the above-mentioned implementation methods, in some possible implementation methods, the starry sky ceiling includes multiple display areas, and the roof of the vehicle is provided with pressure sensors corresponding to each of the multiple display areas, and the detection direction of the pressure sensor is above the vehicle; after determining multiple target dynamic patterns according to the current precipitation, before controlling the starry sky ceiling to display multiple target dynamic patterns within a preset period, it also includes: obtaining the pressure value collected by the pressure sensor corresponding to each display area; determining the target display area from the multiple display areas according to the pressure value collected by the pressure sensor corresponding to each display area; within the preset period, controlling the starry sky ceiling to display multiple target dynamic patterns, including: within the preset period, controlling the starry sky ceiling to display multiple target dynamic patterns in the target display area.
[0025] Through the above scheme, the pressure sensor is used to sense the pressure change of raindrops on the roof, the target display area affected by raindrops is determined, and multiple target dynamic patterns are displayed in the target area to reflect the precipitation conditions of the environment in which the vehicle is located. In this way, the display effect of the starry sky roof can more accurately reflect the precipitation conditions of the vehicle's environment, thereby enhancing the interaction between the vehicle and the environment and improving the user experience.
[0026] In combination with the first aspect and the above-mentioned implementation methods, in some possible implementation methods, a target display area is determined from multiple display areas based on the pressure values collected by the pressure sensors corresponding to each display area, including: from multiple display areas, a display area whose pressure value collected by the pressure sensor is greater than a preset pressure value threshold is determined as the target display area; or, from multiple display areas, a preset number of display areas are determined as the target display areas in order from large to small according to the pressure values collected by the pressure sensors.
[0027] Through the above scheme, based on the pressure value collected by the pressure sensor, the target display area can be determined from multiple display areas by means of a threshold or sorting, so that the target display area can effectively reflect the situation of raindrops falling on the roof, providing a basis for the subsequent display of target dynamic patterns.
[0028] In combination with the first aspect and the above-mentioned implementation methods, in some possible implementation methods, within a preset period, the starry sky top is controlled to display multiple target dynamic patterns in the target display area, including: within the preset period, determining the duration of each target dynamic pattern among the multiple target dynamic patterns; determining the layout information of each target dynamic pattern in the target display area of the starry sky top according to the duration of each target dynamic pattern; controlling the starry sky top to display multiple target dynamic patterns in the target display area according to the duration and layout information of each target dynamic pattern.
[0029] Through the above scheme, by determining the duration of each target dynamic pattern within a preset period and further determining the layout information of each target dynamic pattern, a data basis is provided for the subsequent starry sky top display. Considering the duration and layout information of each target dynamic pattern, the starry sky top is controlled to display multiple target dynamic patterns in the target display area, which can avoid the position conflicts that may exist in the starry sky top display process of multiple target dynamic patterns, and provide users with a good visual experience.
[0030] In a second aspect, a vehicle is provided, characterized in that the vehicle comprises:
[0031] A memory for storing executable program codes;
[0032] A processor is used to call and run the executable program code from the memory so that the vehicle executes the method in the above-mentioned first aspect or any possible implementation of the first aspect.
[0033] According to a third aspect, a computer program product is provided, comprising: a computer program code, which, when executed on a computer, enables the computer to execute the method according to the first aspect or any possible implementation of the first aspect.
[0034] In a fourth aspect, a computer-readable storage medium is provided, which stores a computer program code. When the computer program code runs on a computer, the computer executes the method in the above-mentioned first aspect or any possible implementation manner of the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] Figure 1 It is a schematic diagram of a starry sky ceiling provided in an embodiment of the present application;
[0036] Figure 2 is a flow chart of a vehicle control method provided in an embodiment of the present application;
[0037] Figure 3 is a schematic diagram of a display effect of a dynamic pattern provided in an embodiment of the present application;
[0038] Figure 4 This is a schematic diagram of a process for obtaining current precipitation provided by an embodiment of the present application;
[0039] Figure 5 is a schematic diagram of a process for determining precipitation provided in an embodiment of the present application;
[0040] Figure 6 is a schematic diagram of a process for determining multiple target dynamic patterns provided by an embodiment of the present application;
[0041] Figure 7 is a schematic diagram of a process for determining multiple target dynamic patterns provided by an embodiment of the present application;
[0042] Figure 8 It is a schematic diagram of a process of displaying multiple target dynamic patterns provided by an embodiment of the present application;
[0043] Fig. 9 is a schematic diagram of a display effect of a dynamic pattern provided in an embodiment of the present application;
[0044] Fig.10 It is a schematic diagram of a process of displaying a dynamic pattern in different regions provided by an embodiment of the present application;
[0045] Fig.11is a distribution diagram of a pressure sensor provided in an embodiment of the present application;
[0046] Fig.12 This is a schematic diagram of the effect of displaying dynamic patterns in different regions provided by an embodiment of the present application;
[0047] Fig.13 It is a structural schematic diagram of a starry sky top display system provided in an embodiment of the present application;
[0048] Fig.14 It is a structural schematic diagram of a vehicle provided in an embodiment of the present application. DETAILED DESCRIPTION
[0049] The technical solution in the present application will be described clearly and in detail below in conjunction with the accompanying drawings. In the description of the embodiments of the present application, unless otherwise specified, " / " means or, for example, A / B can mean A or B: "and / or" in the text is only a description of the association relationship of associated objects, indicating that there can be three relationships, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiments of the present application, "multiple" means two or more than two.
[0050] In the following, the terms "first" and "second" are used for descriptive purposes only and should not be understood as suggesting or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features.
[0051] The starry sky roof of the vehicle is composed of multiple display points. Each display point is formed by integrating one end of the optical fiber into the back of the roof and using the optical fiber to transmit the light source so that the light forms a bright spot at the end of the optical fiber. Figure 1 , Figure 1 001 is a schematic diagram of a starry sky ceiling provided in an embodiment of the present application. The multiple display points 002 of the starry sky ceiling 001 work together to present different effects and patterns, providing passengers with an immersive in-car lighting experience.
[0052] However, the starry sky ceilings in related technologies are mostly limited to the display of preset fixed patterns and lack the ability to interact with the vehicle's environment, resulting in a poor user experience.
[0053] In response to the problems in the related art, the embodiments of the present application mainly provide the following solutions: when precipitation is detected in the environment where the vehicle is located, further obtaining the current precipitation in the environment where the vehicle is located. Then, multiple target dynamic patterns are determined according to the current precipitation, so that the number of target dynamic patterns is positively correlated with the current precipitation. In other words, the greater the current precipitation, the greater the number of target dynamic patterns; the smaller the current precipitation, the smaller the number of target dynamic patterns. Finally, within a preset period, the starry sky top is controlled to display multiple target dynamic patterns, so that the target dynamic patterns can effectively reflect the current precipitation in the environment where the vehicle is located. In this way, the interaction ability between the vehicle and the environment in which the vehicle is located can be enhanced, and the user experience can be effectively improved.
[0054] based on Figure 1 The starry sky top shown below will be combined Figure 2 - Fig.13 , the vehicle control method provided in the embodiment of the present application is introduced in detail.
[0055] See also Figure 2 , Figure 2 A schematic diagram of a vehicle control method provided in an embodiment of the present application. The vehicle is provided with a starry sky roof. Figure 2 As shown, the method of the embodiment of the present application may include the following steps S101-S103.
[0056] S101: If it is detected that precipitation exists in the environment where the vehicle is located, the current precipitation amount of the environment where the vehicle is located is obtained.
[0057] Specifically, the vehicle environment involved in this embodiment refers to the external natural environment in which the vehicle is currently located, which may be affected by various factors such as climate, weather, and geographical location. In order to make the content displayed on the starry sky top adapt to the precipitation in the vehicle's environment, it is first necessary to detect whether there is precipitation in the vehicle's environment. Among them, precipitation refers to the phenomenon that water vapor in the atmosphere condenses into water droplets or ice crystals after being cooled and falls from the air to the ground. Precipitation includes various forms such as rain and snow. In other words, the precipitation involved in this embodiment may include one or more of rainfall and snowfall.
[0058] Regarding detecting whether there is precipitation in the vehicle's environment, several possible implementation methods are provided below:
[0059] In a possible implementation, the vehicle is provided with a rain sensor. The rain sensor is a device that directly measures whether it is raining and the amount of rainfall. The corresponding rainfall state detection information can be obtained through the rain sensor, and the rainfall state detection information corresponding to the rain sensor may indicate rainfall or no rainfall, thereby realizing the detection of whether there is rainfall in the environment where the vehicle is located.
[0060] In a possible implementation, the vehicle is provided with a snow sensor. The snow sensor is a device that directly measures whether snow is falling and the amount of snow. The corresponding snowfall status detection information can be obtained through the snow sensor. The snowfall status detection information corresponding to the snow sensor may indicate snowfall or no snowfall, thereby realizing the detection of whether snowfall exists in the environment where the vehicle is located.
[0061] In one possible implementation, the vehicle is provided with a camera: the camera is used to collect images of the vehicle's external environment, and image processing technology is used to analyze the external environment images, and based on the analysis results, it is determined whether there is rain or snow in the vehicle's environment.
[0062] In a possible implementation, the vehicle is installed with a weather information service program. The vehicle can obtain real-time weather data through the weather information service program, and determine whether there is rain or snow in the environment where the vehicle is located based on the weather data.
[0063] In one possible implementation, a comprehensive detection result can be obtained by combining multiple sensors including rain sensors, snow sensors, cameras, and meteorological information service programs, and determining whether there is rain or snow in the vehicle's environment based on the comprehensive detection result.
[0064] It can be understood that the above-mentioned rain sensors and snow sensors are both precipitation sensors.
[0065] Based on the above detection process, if precipitation is detected in the environment where the vehicle is located, the current precipitation amount of the environment where the vehicle is located can be further obtained. Among them, the current precipitation amount refers to the intensity of precipitation (including rain and snowfall) in the environment where the vehicle is located at the current moment.
[0066] When it is detected that there is rainfall in the environment where the vehicle is located, the current rainfall amount obtained is the current rainfall amount. The current rainfall amount refers to the total amount of rain that falls on the location of the vehicle per unit time (such as per hour) at the current moment (measured in units of millimeters or inches). The size of the current rainfall amount can reflect the intensity of the rainfall.
[0067] When snowfall is detected in the environment where the vehicle is located, the current precipitation amount obtained is the current snowfall amount. The current snowfall amount refers to the total amount of snow that falls on the location of the vehicle per unit time (such as per hour) at the current moment (measured in units of millimeters or inches). The current snowfall amount can reflect the intensity of the snowfall.
[0068] It is understandable that the above current rainfall can be collected by a rain sensor or obtained through a meteorological information service program; similarly, the above current snowfall can be collected by a snow sensor or obtained through a meteorological information service program. In addition, in some possible cases, a machine learning model can be used to analyze the external environment image collected by the camera to obtain the current rainfall or current snowfall.
[0069] Assume that the trained rainfall detection model can receive the external environment image captured by the camera as input and output the corresponding current rainfall. Then, the following conditions can be prepared during the training process of the rainfall detection model:
[0070] A large number of rainfall images are obtained, and these rainfall images should cover different rainfall amounts; multiple training samples are constructed based on these rainfall images, each training sample includes a rainfall image as an input and a corresponding rainfall amount as an output; an initial rainfall detection model is created based on a suitable machine learning architecture (such as a convolutional neural network in deep learning); the initial rainfall detection model is iteratively trained using the above multiple training samples, during which the initial rainfall detection model will learn the connection between the raindrop features in the rainfall image and the rainfall amount, and its internal parameters will be iteratively adjusted to improve the generalization ability of the initial rainfall detection model; the training is continued until a preset convergence condition is reached (such as the loss function converges below a certain threshold), at which time the initial rainfall detection model is considered to have been trained, and the initial rainfall detection model can be determined as a trained rainfall detection model; since the rainfall detection model has learned the connection between the raindrop features in the rainfall image and the rainfall amount during the training process, the rainfall detection model can accurately output the corresponding current rainfall amount after receiving the external environment image captured by the camera as input.
[0071] Assume that the trained snowfall detection model can receive the external environment image captured by the camera as input and output the corresponding current snowfall. Then, the following conditions can be prepared during the training process of the snowfall detection model:
[0072] A large number of snowfall images are obtained, and these snowfall images should cover different snowfall amounts; multiple training samples are constructed based on these snowfall images, each training sample includes a snowfall image as input and a corresponding snowfall amount as output; an initial snowfall detection model is created based on a suitable machine learning architecture (such as a convolutional neural network in deep learning); the initial snowfall detection model is iteratively trained using the above multiple training samples, during which the initial snowfall detection model will learn the relationship between the snowflake features / snow accumulation features in the snowfall image and the snowfall amount, and its internal parameters will be iteratively adjusted to improve the generalization ability of the initial snowfall detection model; the training is continued until a preset convergence condition is reached (such as the loss function converges below a certain threshold), at which time the initial snowfall detection model is considered to have been trained, and the initial snowfall detection model can be determined as a trained snowfall detection model; since the snowfall detection model has learned the relationship between the snowflake features / snow accumulation features in the snowfall image and the snowfall amount during the training process, the snowfall detection model can accurately output the corresponding current snowfall amount after receiving the external environment image captured by the camera as input.
[0073] It should be noted that the above-mentioned current rainfall and current snowfall both belong to current precipitation, and the application methods of the two in the subsequent steps of this embodiment are consistent and will not be strictly distinguished. Similarly, the rainfall detection model and the snowfall detection model both belong to the precipitation detection model. The precipitation output by the precipitation detection model can be obtained by inputting the precipitation image into the precipitation detection model. The precipitation detection model will be used to summarize the rainfall detection model and the snowfall detection model.
[0074] S102, determining a plurality of target dynamic patterns according to the current precipitation, wherein the number of the target dynamic patterns is positively correlated with the current precipitation.
[0075] Specifically, in order to make the display effect of the starry sky ceiling reflect the precipitation situation of the vehicle's environment, after determining the current precipitation, it is necessary to determine multiple target dynamic patterns according to the current precipitation. The optional implementation methods are as follows:
[0076] In a possible implementation, there is a predetermined mapping relationship between precipitation and the dynamic pattern. According to the current precipitation and the mapping relationship between the precipitation and the dynamic pattern, the target dynamic pattern can be determined.
[0077] In a possible implementation, there is a predetermined mapping relationship between precipitation and display strategy, and the display strategy includes the corresponding dynamic pattern and the number of dynamic patterns. In some possible cases, the display strategy also includes the duration and layout information of the corresponding dynamic pattern for use in the subsequent process of controlling the starry sky top to display. According to the current precipitation and the mapping relationship between precipitation and display strategy, the target display strategy is determined. It is understandable that the target display strategy includes the target dynamic pattern and the number of target dynamic patterns.
[0078] It should be noted that in the above two possible implementations, the number of target dynamic patterns is positively correlated with the current precipitation, so the number of target dynamic patterns can subsequently reflect the precipitation conditions of the vehicle's environment. The greater the current precipitation, the greater the number of target dynamic patterns; the smaller the current precipitation, the smaller the number of target dynamic patterns.
[0079] In addition to the number of target dynamic patterns, the type of target dynamic pattern can also reflect the precipitation situation of the vehicle's environment to a certain extent. For example, when the current precipitation is small, the first target dynamic pattern is determined; when the current precipitation is large, the second target dynamic pattern is determined. Among them, the first target dynamic pattern is a meteor pattern with low brightness or a small number of corresponding display points, and the second target dynamic pattern is a meteor pattern with high brightness or a large number of corresponding display points. The meteor pattern is displayed by lighting up multiple display points in sequence. It can be understood that the first target dynamic pattern can produce a darker or shorter meteor effect, and the second target dynamic pattern can produce a brighter or longer meteor effect; the second target dynamic pattern can provide more obvious visual feedback relative to the first target dynamic pattern. The user can perceive that the current precipitation in the vehicle's environment is small based on the visual feedback of the first target dynamic pattern, and the user can perceive that the current precipitation in the vehicle's environment is large based on the visual feedback of the second target dynamic pattern.
[0080] S103, within a preset period, controlling the starry sky top to display multiple target dynamic patterns.
[0081] Specifically, dynamic patterns are different from static patterns in that they can present dynamic visual effects within a certain time range, so dynamic patterns need to have a corresponding duration, where the duration of a dynamic pattern refers to the time period from the start to the end of the display of the dynamic pattern.
[0082] In addition, the dynamic pattern needs to be displayed on the starry sky top, so the dynamic pattern needs to have corresponding layout information. The layout information of the dynamic pattern indicates the corresponding display point of the dynamic pattern on the starry sky top, and indirectly indicates the display position of the dynamic pattern on the starry sky top.
[0083] The preset period involved in this embodiment refers to a time range pre-set in order to control the starry sky top to display multiple target dynamic patterns. Within the preset period, the starry sky top will display multiple dynamic patterns with specific duration and layout information in sequence or simultaneously according to a predetermined display strategy or a dynamically determined method. It should be noted that the length of the preset period can be adjusted according to actual needs to ensure that the display effect of the dynamic pattern meets the design requirements.
[0084] In a possible implementation, the target dynamic pattern has a corresponding duration and layout information that is predetermined. For example, in an implementation provided in step S102, the display strategy also includes the duration and layout information of the corresponding dynamic pattern, and the duration of the dynamic pattern in the display strategy is within a preset period, and subsequently, the starry sky top is controlled to display multiple target dynamic patterns within the preset period directly according to the duration and layout information of the dynamic pattern provided by the display strategy.
[0085] In a possible implementation, the target dynamic pattern has a corresponding duration and layout information which is not predetermined. The duration of each target dynamic pattern in the target dynamic pattern can be determined within a preset period; the layout information of each target dynamic pattern on the starry sky top can be determined according to the duration of each target dynamic pattern; and the starry sky top can be controlled to display multiple target dynamic patterns according to the duration and layout information of each target dynamic pattern.
[0086] For easier understanding of this embodiment, please refer to Figure 3 , Figure 3 It is a schematic diagram of a display effect of a dynamic pattern provided by an embodiment of the present application. Among them, the starry sky top 001 displays 12 target dynamic patterns 003 at a certain moment, and the display effect of the target dynamic pattern 003 is achieved by lighting up the corresponding display points 002 in sequence.
[0087] To facilitate understanding of the present embodiment, a simple example is provided below: Assuming the preset period is 30 seconds, there are 60 target dynamic patterns to be displayed, and each dynamic pattern has its duration and layout information. Among them, the maximum number of target dynamic patterns displayed by the starry sky top at the same time is 10, and the duration of each target dynamic pattern is 5 seconds.
[0088] First, set unique identifiers for each of the 60 target dynamic patterns (such as numbers 1 to 60), and determine the layout information of each target dynamic pattern, that is, their specific display positions on the starry sky top. Since the starry sky top can display up to 10 target dynamic patterns at the same time, it is necessary to plan the display position of each batch of target dynamic patterns to ensure that there is no conflict or overlap.
[0089] In the preset period of 30 seconds, a strategy of approximately uniform distribution can be adopted, that is, a new batch of 10 target dynamic patterns are switched and displayed every 5 seconds. Among them, 0-5 seconds display target dynamic patterns 1 to 10, each target dynamic pattern is positioned and displayed on the top of the starry sky according to its layout information; 5-10 seconds quickly switch to target dynamic patterns 11 to 20, and at the same time, the previous batch of target dynamic patterns 1 to 10 ends display; and so on, a new batch of 10 target dynamic patterns is switched every 5 seconds, until the end of 30 seconds, 6 batches of target dynamic patterns have been displayed, a total of 60.
[0090] It is understandable that the above scheme is only used as a simplified explanation scheme, and the starry sky top displays 10 target dynamic patterns at any time within the preset period. In actual operation, the number of target dynamic patterns displayed by the starry sky top at different times within the preset period may be different, and multiple target dynamic patterns displayed at the same time may also correspond to different display progress (for example, some target dynamic patterns have just started to be displayed, and some target dynamic patterns are about to end display). The specific display methods are not listed here one by one.
[0091] In this embodiment, when precipitation is detected in the environment where the vehicle is located, the current precipitation of the environment where the vehicle is located is further obtained. Then, multiple target dynamic patterns are determined according to the current precipitation, so that the number of target dynamic patterns is positively correlated with the current precipitation. In other words, the greater the current precipitation, the greater the number of target dynamic patterns; the smaller the current precipitation, the smaller the number of target dynamic patterns. Finally, within a preset period, the starry sky top is controlled to display multiple target dynamic patterns, so that the target dynamic patterns can effectively reflect the current precipitation of the environment where the vehicle is located. In this way, the interaction ability between the vehicle and the environment where the vehicle is located can be enhanced, and the user experience can be effectively improved.
[0092] See also Figure 4 , provides a schematic diagram of a process for obtaining the current precipitation in the embodiment of the present application, such as Figure 4 As shown, the method of the embodiment of the present application may include the following steps S201-S204, and steps S201-S204 may be used as Figure 2 The refinement of step S101 in the illustrated embodiment.
[0093] S201, if it is detected that there is precipitation in the environment where the vehicle is located, obtaining an external environment image captured by a camera of the vehicle;
[0094] S202, determining a first current precipitation amount and a first weight of the first current precipitation amount according to an external environment image collected by a camera of the vehicle;
[0095] S203, obtaining a second current precipitation amount collected by a precipitation sensor of the vehicle and a second weight of the second current precipitation amount;
[0096] S204, performing weighted summation according to the first current precipitation, the first weight, the second current precipitation and the second weight to obtain the current precipitation.
[0097] Specifically, if precipitation is detected in the vehicle's environment, then the external environment image captured by the vehicle's camera can be further obtained, wherein the external environment image captured by the vehicle's camera refers to real-time image data of the vehicle's surroundings captured by the camera installed on the vehicle.
[0098] Next, the external environment image captured by the vehicle's camera can be input into a pre-trained precipitation detection model to obtain the first current precipitation output by the precipitation detection model. The precipitation detection model includes a rainfall detection model and a snowfall detection model. The training process of the rainfall detection model and the snowfall detection model is Figure 2 The implementation principle of the precipitation detection model has been introduced in detail in the illustrated embodiment, and will not be described in detail here.
[0099] In addition, the clarity of the external environment image is analyzed and determined; according to the clarity of the external environment image and the mapping relationship between the clarity and the weight, the first weight of the first current precipitation corresponding to the clarity of the external environment image is determined, wherein the clarity of the external environment image and the first weight of the first current precipitation are positively correlated. It can be understood that the higher the clarity of the external environment image, the greater the first weight of the first current precipitation; the lower the clarity of the external environment image, the smaller the first weight of the first current precipitation. It should be noted that the clarity of the external environment image can be analyzed and determined using a clarity evaluation algorithm in image processing technology, such as Laplace transform, gradient calculation, etc. The clarity evaluation algorithm can calculate the sharpness of the edges in the image or the richness of the details, thereby giving a clarity score.
[0100] Further, a second current precipitation amount collected by a precipitation sensor of the vehicle is obtained, and the second current precipitation amount can be directly measured by the precipitation sensor. The second weight of the second current precipitation amount can be obtained by subtracting the first weight from the preset weight sum.
[0101] Finally, a weighted sum is performed according to the first current precipitation, the first weight, the second current precipitation and the second weight to obtain the current precipitation.
[0102] To facilitate understanding of the present embodiment, a numerical example is provided below:
[0103] When precipitation is detected in the environment where the vehicle is located, an external environment image captured by the vehicle camera is first obtained, and the external environment image reflects the precipitation situation around the vehicle.
[0104] Next, the external environment image is input into the pre-trained precipitation detection model. Assume that the precipitation detection model outputs the first current precipitation as 5 mm / hour. At the same time, the clarity of the external environment image is analyzed and determined, and the clarity score of the external environment image is calculated using the Laplace transform algorithm to be 85 (out of 100). According to the mapping relationship between clarity and weight, the first weight of the first current precipitation is determined to be 0.8 (the higher the clarity, the greater the weight).
[0105] Then, the second current precipitation collected by the vehicle precipitation sensor is obtained, assuming that the second current precipitation is 6 mm / hour. Since the preset weight sum is 1, the first weight 0.8 of the first current precipitation is subtracted from 1, and the second weight of the second current precipitation is 0.2.
[0106] Finally, according to the weighted summation formula, the current precipitation is the first current precipitation multiplied by the first weight plus the second current precipitation multiplied by the second weight, that is, 5*0.8+6*0.2=5.2 mm / hour.
[0107] The above numerical example shows how to combine camera image analysis and sensor measurements to obtain a more accurate current precipitation amount. By giving reasonable weights to different data sources and considering the impact of image clarity on the weights, it is possible to provide a precipitation estimate that integrates multiple information, namely the current precipitation amount.
[0108] In this embodiment, the external environment image captured by the camera is first used to intuitively identify the precipitation situation, thereby determining the first current precipitation amount and the first weight of the first current precipitation amount. Then, the second current precipitation amount and the second weight of the second current precipitation amount collected by the precipitation sensor are obtained. The current precipitation amount can be obtained by fusing the above data in a weighted summation manner. In this way, by combining the data of the camera and the precipitation sensor to determine the current precipitation amount of the vehicle's environment, the accuracy and reliability of the current precipitation amount can be improved.
[0109] See also Figure 5 , provides a schematic diagram of a process for determining precipitation for an embodiment of the present application, such as Figure 5 As shown, the method of the embodiment of the present application may include the following steps S301-S304, and steps S301-S304 may be Figure 2 In the illustrated embodiment, it is performed before step S101.
[0110] S301, obtaining an external environment image captured by a camera of the vehicle;
[0111] S302, determining first precipitation state detection information according to an external environment image collected by a camera of the vehicle;
[0112] S303, if the first precipitation state detection information indicates precipitation, obtaining second precipitation state detection information collected by a precipitation sensor of the vehicle;
[0113] S304: If the second precipitation state detection information indicates precipitation, determine that precipitation exists in the environment where the vehicle is located.
[0114] Specifically, this embodiment aims to ensure accurate judgment of whether there is precipitation in the vehicle's environment through multiple verifications, thereby providing a reliable premise for subsequent vehicle control methods.
[0115] First, an external environment image captured by a camera of the vehicle is obtained. The precipitation image is input into a precipitation detection model to obtain the precipitation output by the precipitation detection model, and the precipitation output by the precipitation detection model is compared with a preset threshold value, and the first precipitation state detection information can be determined according to the comparison result.
[0116] For example, the preset threshold is 0, and the precipitation output by the precipitation detection model is compared with the preset threshold. If the precipitation output by the precipitation detection model is greater than 0, then the first precipitation state detection information determined according to the comparison result indicates precipitation; if the precipitation output by the precipitation detection model is equal to 0, then the first precipitation state detection information determined according to the comparison result indicates no precipitation.
[0117] If the first precipitation state detection information indicates no precipitation, then it can be determined that there is no precipitation in the environment where the vehicle is located, and the subsequent judgment steps will not be performed; if the first precipitation state detection information indicates precipitation, then the second precipitation state detection information collected by the precipitation sensor of the vehicle will be obtained. The precipitation sensor includes one or more of a rain sensor and a snow sensor, and the second precipitation state detection information is a state quantity that can be directly measured by the precipitation sensor, which is used to indicate whether there is precipitation.
[0118] If the second precipitation state detection information indicates no precipitation, then it can be determined that there is no precipitation in the environment where the vehicle is located; if the second precipitation state detection information indicates precipitation, then it can be determined that there is precipitation in the environment where the vehicle is located.
[0119] In addition to the method of judging the presence of precipitation in the environment of the vehicle based on the camera and the precipitation sensor provided in this embodiment, the presence of precipitation in the environment of the vehicle can also be judged based on the camera or the precipitation sensor alone. In a possible implementation, an external environment image captured by the camera of the vehicle is obtained, and first precipitation state detection information is determined according to the external environment image captured by the camera of the vehicle. If the first precipitation state detection information indicates precipitation, it is determined that precipitation exists in the environment of the vehicle; in a possible implementation, second precipitation state detection information collected by the precipitation sensor of the vehicle is obtained. If the second precipitation state detection information indicates precipitation, it is determined that precipitation exists in the environment of the vehicle.
[0120] In this embodiment, the external environment image is first collected by the vehicle's camera, and the first precipitation state detection information is determined based on the image. When the first precipitation state detection information indicates precipitation, the second precipitation state detection information collected by the precipitation sensor is further obtained to double verify whether there is precipitation in the environment where the vehicle is located. This mechanism can also effectively avoid misjudgment caused by environmental factors or its own failure of a single sensor, and enhance the accuracy of determining whether there is precipitation in the environment where the vehicle is located.
[0121] See also Figure 6 , provides a schematic diagram of a process for determining multiple target dynamic patterns in an embodiment of the present application, such as Figure 6 As shown, the method of the embodiment of the present application may include the following steps S401-S402, and steps S401-S402 may be used as Figure 2 The refinement of step S102 in the illustrated embodiment.
[0122] S401, determining a target dynamic pattern according to current precipitation and a mapping relationship between precipitation and dynamic patterns;
[0123] S402, determining the number of target dynamic patterns according to the current precipitation and the mapping relationship between the precipitation and the number, wherein the number of the target dynamic patterns is multiple.
[0124] Specifically, the mapping relationship between the precipitation and the dynamic pattern involved in this embodiment is predetermined, and the mapping relationship between the precipitation and the dynamic pattern can be recorded based on a database, a data table or other types of configuration files.
[0125] According to the current precipitation and the mapping relationship between precipitation and dynamic patterns defined above, the vehicle can automatically determine the target dynamic pattern that should be displayed. In a possible implementation, the process is implemented by querying a mapping relationship table or calling a corresponding algorithm, wherein the current precipitation is used as an input parameter, and the corresponding dynamic pattern is found in the mapping relationship between precipitation and dynamic patterns according to the input parameter, and is used as the target dynamic pattern for subsequent processing.
[0126] Similarly, the mapping relationship between precipitation and quantity involved in this embodiment is predetermined, and the mapping relationship between precipitation and quantity can be recorded based on a database, a data table or other types of configuration files.
[0127] According to the current precipitation and the mapping relationship between precipitation and quantity defined above, the vehicle can automatically determine the number of target dynamic patterns that should be displayed. In a possible implementation, the process is implemented by querying a mapping relationship table or calling a corresponding algorithm, wherein the current precipitation is used as an input parameter, and the corresponding number is found in the mapping relationship between precipitation and quantity according to the input parameter, and is used as the number of target dynamic patterns for subsequent processing.
[0128] Two numerical examples are provided below to illustrate how to determine the target dynamic patterns and their quantities under different current precipitation amounts.
[0129] Example 1: The current precipitation is small.
[0130] Assuming that the current precipitation is 2 mm / hour, according to the predetermined mapping relationship between precipitation and dynamic patterns, it is found that the target dynamic pattern corresponding to the current precipitation is the "short meteor" dynamic pattern, which corresponds to fewer display points (for example, 5 display points) and can produce a display effect of a meteor passing by.
[0131] At the same time, based on the mapping relationship between precipitation and quantity, it is determined that under the current precipitation, 30 "short meteor" dynamic patterns should be displayed. These "short meteor" dynamic patterns will subsequently be displayed on the top of the starry sky to provide users with visual feedback that is adapted to the low-intensity precipitation outside the car.
[0132] Example 2: The current precipitation is high.
[0133] Assuming that the current precipitation is 10 mm / hour, according to the predetermined mapping relationship between precipitation and dynamic patterns, it is found that the target dynamic pattern corresponding to the current precipitation is the "long meteor" dynamic pattern, which corresponds to more display points (e.g., 8 display points) and can produce a display effect of a meteor passing by.
[0134] At the same time, based on the mapping relationship between precipitation and quantity, it is determined that under the current precipitation, 60 "long meteor" dynamic patterns should be displayed. These "long meteor" dynamic patterns will subsequently be displayed on the top of the starry sky to provide users with visual feedback corresponding to the high-intensity precipitation outside the car.
[0135] Through the above two numerical examples, it can be seen that under different current precipitation conditions, the vehicle can automatically determine the target dynamic patterns and their quantity that should be displayed based on a predetermined mapping relationship.
[0136] It should be noted that another implementation is to determine a certain dynamic pattern as the target dynamic pattern by default regardless of the current precipitation amount. In addition, the number of target dynamic patterns can be determined based on the current precipitation amount and the mapping relationship between precipitation amount and number.
[0137] In this embodiment, according to the mapping relationship between precipitation and dynamic patterns, the target dynamic pattern that best suits the current precipitation conditions can be intelligently selected, thereby improving the pertinence and relevance of the target dynamic pattern display. At the same time, according to the mapping relationship between precipitation and quantity, the number of target dynamic patterns can be determined, so that the target dynamic patterns subsequently displayed by the starry sky top can better reflect the changes in precipitation intensity.
[0138] See also Figure 7 , provides a schematic diagram of a process for determining multiple target dynamic patterns in an embodiment of the present application, such as Figure 7 As shown, the method of the embodiment of the present application may include the following steps S501, and step S501 may be used as Figure 2 The refinement of step S102 in the illustrated embodiment.
[0139] S501, determining a target display strategy according to current precipitation and a mapping relationship between precipitation and display strategy, wherein the target display strategy includes a target dynamic pattern and the number of target dynamic patterns.
[0140] Specifically, the mapping relationship between the precipitation and the display strategy involved in this embodiment is predetermined, and this mapping relationship can be recorded based on a database, a data table or other types of configuration files. The display strategy is a comprehensive concept, which includes not only the corresponding dynamic pattern itself, but also the number of corresponding dynamic patterns, and the duration and layout information of the dynamic patterns that may be involved.
[0141] Based on the current precipitation and the mapping relationship between precipitation and display strategy defined above, the vehicle can automatically determine the target display strategy to be adopted. In one possible implementation, this process is completed by querying a mapping relationship table or calling a corresponding algorithm. Specifically, the current precipitation is used as an input parameter, and the vehicle will find the corresponding display strategy in the mapping relationship between precipitation and display strategy based on this input parameter, and use it as the target display strategy for subsequent processing.
[0142] Once the target display strategy is determined, the target dynamic patterns to be displayed and the number of these target dynamic patterns have been determined. These target dynamic patterns and quantities will match the current precipitation in the vehicle's environment, providing users with an intuitive and interactive visual feedback.
[0143] For example, suppose that at a certain moment, the vehicle detects that the current precipitation is 5 mm / hour. According to the predetermined mapping relationship between precipitation and display strategy, the corresponding target display strategy may be queried as "medium-intensity precipitation display strategy". The target display strategy may include a specific dynamic pattern (such as a "medium-length meteor" dynamic pattern, corresponding to 6 display points), and a moderate number (such as 40). In this way, the starry sky top will display 40 "medium-length meteor" dynamic patterns according to this target display strategy, providing users with a visual experience that is adapted to the medium-intensity precipitation outside the car.
[0144] In this embodiment, based on the mapping relationship between precipitation amount and display strategy, the target display strategy that best suits the current precipitation conditions can be intelligently selected. The target display strategy includes target dynamic patterns and the number of target dynamic patterns, which can directly provide a data basis for subsequent starry sky top display, simplifying the process of determining target dynamic patterns and the number of target dynamic patterns.
[0145] See also Figure 8 , provides a schematic diagram of a process for displaying multiple target dynamic patterns in an embodiment of the present application, such as Figure 8 As shown, the method of the embodiment of the present application may include the following steps S601-S603, and steps S601-S603 may be used as Figure 2 The refinement of step S103 in the illustrated embodiment.
[0146] S601, determining the duration of each target dynamic pattern among a plurality of target dynamic patterns within a preset period;
[0147] S602, determining the layout information of each target dynamic pattern on the starry sky top according to the duration of each target dynamic pattern;
[0148] S603, controlling the starry sky top to display multiple target dynamic patterns according to the duration and layout information of each target dynamic pattern.
[0149] Specifically, the preset period refers to a time range that is pre-set in order to control the display of multiple target dynamic patterns on the starry sky top; the duration of the dynamic pattern refers to the time period from the start to the end of the display of the dynamic pattern; the layout information of the dynamic pattern indicates the corresponding display point of the dynamic pattern on the starry sky top, indirectly indicating the display position of the dynamic pattern on the starry sky top.
[0150] First, it is necessary to determine the duration of each target dynamic pattern in the preset period. The main purpose of this step is to resolve the position conflicts of different target dynamic patterns on the starry sky top. Here, it is necessary to consider the maximum number of target dynamic patterns displayed by the starry sky top at the same time, to ensure that at the same time, the number of target dynamic patterns displayed by the starry sky top does not exceed its display upper limit; and at different times, the number of target dynamic patterns displayed by the starry sky top is also relatively close.
[0151] The following provides an optional method for determining the layout information of each target dynamic pattern on the starry sky top according to the duration of each target dynamic pattern:
[0152] Preset period T: This is a pre-set time range for controlling the starry sky top to display multiple target dynamic patterns, such as 30 seconds. Maximum number of display N of the starry sky top: The maximum number of target dynamic patterns that the starry sky top can display at the same time, such as 10. Number of target dynamic patterns M: The total number of target dynamic patterns that need to be displayed, such as 60.
[0153] If M is less than or equal to N, that is, the number of target dynamic patterns does not exceed the maximum display number of the starry sky top. However, in this case, no matter how the duration of each target dynamic pattern is allocated, the starry sky top has enough space to display all target dynamic patterns, that is, there is no position conflict between the target dynamic patterns on the starry sky top. At this time, batch display is usually not adopted, but all target dynamic patterns are displayed at the same time, that is, the same duration is configured for all target dynamic patterns until the preset period ends; or, all target dynamic patterns are displayed randomly, that is, different durations are randomly configured for all target dynamic patterns until the preset period ends.
[0154] If M is greater than N, that is, the number of target dynamic patterns exceeds the maximum display number of the starry sky top, then in order to resolve the position conflict of different target dynamic patterns on the starry sky top, it is necessary to display the target dynamic patterns in batches. Assume that all target dynamic patterns are divided into X batches, and the number of target dynamic patterns in each batch should be less than or equal to N, so that the starry sky top does not produce position conflicts when displaying the target dynamic patterns of the same batch. Further, assuming that the duration of each batch is t, then t = T / X.
[0155] For any batch of target dynamic patterns, within the duration t of the batch, the same duration is configured for all target dynamic patterns of the batch until the duration t of the batch ends; or, within the duration t of the batch, different durations are randomly configured for all target dynamic patterns of the batch until the duration t of the batch ends.
[0156] After determining the duration of each target dynamic pattern, the layout information of each target dynamic pattern on the starry sky top can be determined according to the duration of each target dynamic pattern. Specifically, for each target dynamic pattern, a corresponding display point is allocated to it according to its duration to ensure that the position of the target dynamic pattern on the starry sky top does not overlap or conflict with other target dynamic patterns.
[0157] For example, assuming that within a preset period, the duration of target dynamic pattern A is from the 0th second to the 2nd second, the duration of target dynamic pattern B is from the 1st second to the 3rd second, and the duration of target dynamic pattern C is from the 2nd second to the 4th second. It can be seen that the duration of target dynamic pattern A overlaps with the duration of target dynamic pattern B, and different layout information should be determined for target dynamic pattern A and target dynamic pattern B, that is, target dynamic pattern A and target dynamic pattern B are displayed at different positions on the top of the starry sky to avoid conflicts; the duration of target dynamic pattern A and the duration of target dynamic pattern C do not overlap, and different layout information can be determined for target dynamic pattern A and target dynamic pattern C, or the same layout information can be determined for target dynamic pattern A and target dynamic pattern C, and target dynamic pattern A and target dynamic pattern C will not conflict in position.
[0158] After determining the duration and layout information of each target dynamic pattern, the starry sky top can be further controlled to display multiple target dynamic patterns according to the duration and layout information of each target dynamic pattern. In the process of displaying the target dynamic pattern on the starry sky top, the color and brightness of the display point corresponding to the target dynamic pattern can be adjusted (lighting on and off can also be regarded as a brightness adjustment method) so that the target dynamic pattern presents a dynamic visual effect.
[0159] In this embodiment, by determining the duration of each target dynamic pattern within a preset period and further determining the layout information of each target dynamic pattern, a data basis is provided for the subsequent starry sky top display. Considering the duration and layout information of each target dynamic pattern, controlling the starry sky top to display multiple target dynamic patterns can avoid the position conflicts that may exist in the starry sky top display process for multiple target dynamic patterns, while providing users with a good visual experience.
[0160] In one embodiment, Figure 8 In the embodiment shown, step S603 is refined and may include the following steps:
[0161] For any one of the multiple target dynamic patterns to be displayed, if the current time is the same as the start time of the duration of the dynamic pattern to be displayed, multiple display points of the dynamic pattern to be displayed are determined on the top of the starry sky according to the layout information of the target dynamic pattern;
[0162] During the duration of the dynamic pattern to be displayed, the colors and / or brightness of the multiple display points of the dynamic pattern to be displayed are controlled so that the multiple display points of the dynamic pattern to be displayed produce a dynamic display effect.
[0163] Specifically, each of the multiple target dynamic patterns is processed one by one, and when the current moment coincides with the start moment of the duration of a certain dynamic pattern to be displayed, multiple display points corresponding to the dynamic pattern to be displayed are determined on the starry sky top according to the layout information of the target dynamic pattern. These display points are basic elements constituting the dynamic pattern to be displayed, and their positions and numbers are determined by the layout information, ensuring that the dynamic pattern to be displayed is correctly displayed on the starry sky top and does not conflict with other patterns.
[0164] Next, during the duration of the dynamic pattern to be displayed, the color and / or brightness of these determined display points are controlled. By dynamically adjusting the color and / or brightness of these display points, the dynamic pattern to be displayed can present a rich and varied visual effect on the top of the starry sky. It is understandable that the change in color and brightness can be gradual or sudden. In this way, the target dynamic pattern on the top of the starry sky can not only be clearly displayed, but also can be dynamically changed according to the preset animation effect, thereby improving the visual effect.
[0165] For example, for the example of adjusting the color separately, assuming that the dynamic pattern to be displayed is a color halo pattern, multiple display points corresponding to the color halo pattern can be determined on the top of the starry sky based on the layout information of the color halo pattern; during the duration of the color halo pattern, the color of the display points is continuously changed, so that the display points present a color change effect, while the brightness remains unchanged.
[0166] For the example of adjusting the brightness separately, if the dynamic pattern to be displayed is a star pattern, multiple display points corresponding to the star pattern can be determined on the top of the starry sky based on the layout information of the star pattern; during the duration of the star pattern, the brightness of the display points can be quickly switched on and off (i.e., lit and extinguished) to make the star pattern look like it is constantly flashing in the night sky, while the color remains unchanged.
[0167] Finally, for the example of jointly adjusting color and brightness, if the dynamic pattern to be displayed is a flower pattern, the display points corresponding to the petals and the center of the flower pattern can be determined on the top of the starry sky according to the layout information of the flower pattern. During the duration of the flower pattern, the brightness of these display points is gradually increased, and their colors are adjusted at the same time to simulate the process of the flower blooming.
[0168] In this embodiment, when the current moment is the same as the starting moment of the duration of the dynamic pattern to be displayed, the display points can be determined according to the layout information of the dynamic pattern to be displayed, and the color and / or brightness of these display points can be dynamically adjusted during the duration of the dynamic pattern to be displayed, thereby generating a variety of dynamic effects and providing users with a good visual experience.
[0169] In one embodiment, Figure 8 In the embodiment shown, step S603 is refined and may include the following steps:
[0170] For any one of the multiple target dynamic patterns to be displayed, if the current time is the same as the start time of the duration of the dynamic pattern to be displayed, multiple display points of the dynamic pattern to be displayed are determined on the top of the starry sky according to the layout information of the target dynamic pattern;
[0171] During the duration of the dynamic pattern to be displayed, multiple display points of the dynamic pattern to be displayed are sequentially lit up so that the multiple display points of the dynamic pattern to be displayed produce a dynamic display effect.
[0172] Specifically, when the current moment is the same as the start moment of the duration of the dynamic pattern to be displayed, multiple display points corresponding to the dynamic pattern to be displayed are determined on the starry sky top according to the preset layout information of the target dynamic pattern. The positions and number of these display points are determined by the layout information to ensure that the dynamic pattern to be displayed can be displayed correctly and without error on the starry sky top, while avoiding position conflicts with other patterns.
[0173] Then, during the duration of the dynamic pattern to be displayed, multiple display points of the dynamic pattern to be displayed are sequentially lit up. This sequential lighting method can create a flowing or gradually appearing visual effect, making the dynamic pattern on the top of the starry sky more vivid and interesting.
[0174] For example, assuming that the dynamic pattern to be displayed is a meteor pattern, first, when the current moment is the same as the start moment of the duration of the meteor pattern, multiple display points constituting the meteor pattern are determined on the top of the starry sky according to the layout information of the meteor pattern, and these display points may include the head, tail, and various points on the trajectory of the meteor.
[0175] Then, during the duration of the meteor pattern, these display points are lit up in sequence. Specifically, the display points at the head of the meteor can be lit up first, and then the display points at the tail of the meteor can be lit up in sequence along the trajectory of the meteor. This sequential lighting method can simulate the dynamic effect of a meteor passing through the night sky. In some possible implementations, by adjusting the lighting speed and order of the display points, different meteor effects can be created, such as a fast-passing meteor, a slow-moving meteor, etc.
[0176] See also Figure 3 , Figure 3 This is a schematic diagram of a display effect of a dynamic pattern provided in an embodiment of the present application. Among them, the starry sky top 001 displays 12 target dynamic patterns 003 at a certain moment, and any target dynamic pattern 003 includes corresponding 5 display points 002. By lighting up the 5 display points 002 corresponding to any target dynamic pattern 003 in sequence, a corresponding shooting star visual effect can be displayed.
[0177] It should be noted that different target dynamic patterns displayed on the starry sky top at a certain moment can correspond to different display progress. Fig. 9 , Fig. 9 : is a schematic diagram of the display effect of a dynamic pattern provided by an embodiment of the present application. Among them, the target dynamic pattern 003a corresponds to display points 002a, 002b, 002c, 002d, and 002e; the target dynamic pattern 003b corresponds to display points 002f, 002g, 002h, 002i, and 002j. Fig. 9 At the moment shown, the display points 002a, 002b, 002c, 002d, and 002e of the target dynamic pattern 003a have all been lit, so the display progress corresponding to the target dynamic pattern 003a is faster (which can be understood as being close to the end of its duration); the display points 002f, 002g, and 002h of the target dynamic pattern 003b have been lit, while the display points 002i and 002j have not been lit, so the display progress corresponding to the target dynamic pattern 003a is slower (which can be understood as being between the middle and end of its duration). It can be understood that Fig. 9 The display method shown can be extended and applied to any of the above embodiments, so that different target dynamic patterns displayed on the starry sky top at a certain moment can correspond to different display progresses.
[0178] In this embodiment, when the current moment is the same as the starting moment of the duration of the dynamic pattern to be displayed, the display points can be determined according to the layout information of the dynamic pattern to be displayed, and these display points can be lit up in sequence during the duration of the dynamic pattern to be displayed, thereby generating a continuous dynamic effect of display point brightness changes, providing users with a good visual experience.
[0179] See also Fig.10 , provides a schematic diagram of a process of displaying dynamic patterns in different regions for an embodiment of the present application. The starry sky ceiling includes multiple display regions, and a pressure sensor corresponding to each of the multiple display regions is provided on the roof of the vehicle, and the detection direction of the pressure sensor is above the vehicle. Fig.10As shown, the method of the embodiment of the present application may include the following steps S701-S703, and steps S701-S702 may be Figure 2 In the embodiment shown, step S703 is performed after step S102 and before step S103. Figure 2 The refinement of step S103 in the illustrated embodiment.
[0180] S701, obtaining pressure values collected by pressure sensors corresponding to each display area;
[0181] S702, determining a target display area from multiple display areas according to pressure values collected by pressure sensors corresponding to each display area;
[0182] S703, within a preset period, controlling the starry sky top to display multiple target dynamic patterns in the target display area.
[0183] Specifically, the pressure sensor involved in this embodiment is arranged on the roof of the vehicle, and the starry sky roof is also arranged on the roof of the vehicle. The pressure sensors are distributed correspondingly in the various display areas of the starry sky roof, and each display area corresponds to one or more pressure sensors. The detection direction of the pressure sensors is above the vehicle, that is, they can sense the pressure changes above the roof. When raindrops fall on the roof, they will generate pressure on the pressure sensor, thereby changing the pressure value collected by it.
[0184] See also Fig.11 , Fig.11 This is a distribution diagram of a pressure sensor provided in an embodiment of the present application. Among them, the display area of the starry sky top includes display area D11, display area D12, display area D13, display area D14, display area D21, display area D22, display area D23, display area D24, display area D31, display area D32, display area D33, display area D34, display area D41, display area D42, display area D43, display area D44, a total of 16. Each display area is provided with at least one pressure sensor 004 for collecting the corresponding pressure value.
[0185] In order to determine the distribution of raindrops, it is first necessary to obtain the pressure values collected by the pressure sensors corresponding to each display area. Then, the target display area is determined from multiple display areas based on the pressure values collected by the pressure sensors corresponding to each display area. In this process, it is necessary to analyze the pressure values collected from each pressure sensor, and judge the intensity of raindrops in different areas on the roof based on the magnitude relationship of these pressure values. Since the pressure values of the pressure sensors reflect the distribution of raindrops, it is possible to determine which display areas are affected by raindrops based on these pressure values, and thus determine these areas as target display areas.
[0186] Further, within a preset period, the starry sky top is controlled to display multiple target dynamic patterns in the target display area. In this process, according to the previously determined target display areas, the starry sky top is controlled to display multiple target dynamic patterns in these areas.
[0187] See also Fig.12 , Fig.12 003c is a schematic diagram of the effect of displaying a dynamic pattern in different regions provided by an embodiment of the present application. Among them, display area D11, display area D31, display area D22, display area D42, display area D24, and display area D44 are all determined as target display areas, and display the raindrop splashing dynamic pattern 003c. However, display area D21, display area D41, display area D12, display area D32, display area D13, display area D23, display area D33, display area D43, display area D14, and display area D34 do not display the target dynamic pattern.
[0188] It should be noted that the raindrop splashing dynamic pattern 003c is a target dynamic pattern, and at least one raindrop splashing dynamic pattern 003c can be displayed in a target display area. The raindrop splashing dynamic pattern 003c is composed of multiple display points. During its display process, the central display point is first lit, and then the other display points outside the central display point are sequentially lit in an outward diffusion manner, forming a visual effect of raindrop splashing.
[0189] The above raindrop splashing dynamic pattern 003c is only an example. In fact, other types of dynamic patterns may be displayed in the target display area.
[0190] It should be noted that, since the pressure sensor may experience data fluctuations, the pressure value involved in this embodiment may be a pre-processed pressure value. For example, if the sliding average method is used, a plurality of continuous original pressure values may be subjected to sliding average processing to obtain a pressure value after sliding average; if the weighted average method is used, a plurality of continuous original pressure values may be subjected to weighted average processing to obtain a pressure value after weighted average; if the data filtering value method is used, a plurality of continuous original pressure values may be subjected to data filtering processing to obtain a pressure value after data filtering.
[0191] In this embodiment, the pressure sensor is used to sense the pressure change of raindrops on the roof, determine the target display area affected by raindrops, and display multiple target dynamic patterns in the target area to reflect the precipitation of the environment in which the vehicle is located. In this way, the display effect of the starry sky roof can more accurately reflect the precipitation of the environment in which the vehicle is located, thereby enhancing the interaction between the vehicle and the environment and improving the user experience.
[0192] In one embodiment, Fig.10In the illustrated embodiment, step S702 is refined and may include the following steps:
[0193] From multiple display areas, a display area where the pressure value collected by the pressure sensor is greater than a preset pressure value threshold is determined as a target display area; or, from multiple display areas, a preset number of display areas are determined as target display areas in descending order according to the pressure values collected by the pressure sensor.
[0194] Specifically, in order to more accurately reflect the precipitation conditions in the vehicle's environment, it is necessary to selectively display dynamic patterns in the display area of the starry sky top. Specifically, it is necessary to determine which display areas should display the target dynamic patterns, that is, the target display areas, based on the pressure values collected by the pressure sensor.
[0195] In a possible implementation, a preset pressure value threshold is first set, which represents the minimum pressure value that the pressure sensor can sense when raindrops fall on the roof and is sufficient to be determined as effective precipitation. When the pressure value collected by the pressure sensor corresponding to a certain display area is greater than the preset pressure value threshold, it can be considered that the display area is affected by raindrops, and thus the display area is determined as the target display area.
[0196] by Fig.12 For example, assuming that the preset pressure value threshold is P_threshold, the pressure values collected by the pressure sensor in each display area are as follows:
[0197] The pressure value collected by the pressure sensor corresponding to the display area D11 is P11;
[0198] The pressure value collected by the pressure sensor corresponding to the display area D12 is P12;
[0199] The pressure value collected by the pressure sensor corresponding to the display area D13 is P13;
[0200] The pressure value collected by the pressure sensor corresponding to the display area D14 is P14;
[0201] The pressure value collected by the pressure sensor corresponding to the display area D21 is P21;
[0202] The pressure value collected by the pressure sensor corresponding to the display area D22 is P22;
[0203] The pressure value collected by the pressure sensor corresponding to the display area D23 is P23;
[0204] The pressure value collected by the pressure sensor corresponding to the display area D24 is P24;
[0205] The pressure value collected by the pressure sensor corresponding to the display area D31 is P31;
[0206] The pressure value collected by the pressure sensor corresponding to the display area D32 is P32;
[0207] The pressure value collected by the pressure sensor corresponding to the display area D33 is P33;
[0208] The pressure value collected by the pressure sensor corresponding to the display area D34 is P34;
[0209] The pressure value collected by the pressure sensor corresponding to the display area D41 is P41;
[0210] The pressure value collected by the pressure sensor corresponding to the display area D42 is P42;
[0211] The pressure value collected by the pressure sensor corresponding to the display area D43 is P43;
[0212] The pressure value collected by the pressure sensor corresponding to the display area D44 is P44;
[0213] Among them, P11, P31, P22, P42, P24, and P44 are all greater than P_threshold, so the display area D11, the display area D31, the display area D22, the display area D42, the display area D24, and the display area D44 are all determined as target display areas.
[0214] In a possible implementation, all display areas are sorted according to the pressure values collected by the pressure sensor. The sorting is based on the pressure values. The larger the pressure value of the display area, the stronger the impact of raindrops. Then, from the sorted multiple display areas, a preset number of display areas are determined as target display areas in descending order of pressure values.
[0215] by Fig.12 For example, assuming that the pressure values collected by the pressure sensors corresponding to all display areas are sorted from large to small as follows: P11, P31, P22, P42, P24, P44, P32, P12, P41, P21, P13, P34, P23, P33, P14, P43. Assuming that the preset number is 6, the display area D11, the display area D31, the display area D22, the display area D42, the display area D24, and the display area D44 are all determined as target display areas.
[0216] In some cases, the preset number may also be determined based on the current precipitation, and the current precipitation is positively correlated with the preset number.
[0217] In this embodiment, based on the pressure value collected by the pressure sensor, the target display area can be determined from multiple display areas by means of a threshold or sorting, so that the target display area can effectively reflect the situation of raindrops falling on the roof, providing a basis for the subsequent display of target dynamic patterns.
[0218] In one embodiment, Fig.10 In the embodiment shown, step S703 is refined and may include the following steps:
[0219] Determining the duration of each target dynamic pattern among a plurality of target dynamic patterns within a preset period;
[0220] Determine the layout information of each target dynamic pattern in the target display area at the top of the starry sky according to the duration of each target dynamic pattern;
[0221] According to the duration and layout information of each target dynamic pattern, the starry sky top is controlled to display multiple target dynamic patterns in the target display area.
[0222] Specifically, the preset period refers to a time range that is pre-set in order to control the display of multiple target dynamic patterns on the starry sky top; the duration of the dynamic pattern refers to the time period from the start to the end of the display of the dynamic pattern; the layout information of the dynamic pattern indicates the corresponding display point of the dynamic pattern on the starry sky top, indirectly indicating the display position of the dynamic pattern on the starry sky top.
[0223] First, it is necessary to determine the duration of each target dynamic pattern among multiple target dynamic patterns within a preset period. The main purpose of this step is to resolve the position conflicts of different target dynamic patterns in the target display area of the starry sky top. Here, it is necessary to consider the maximum number of target dynamic patterns displayed by the target display area of the starry sky top at the same time, to ensure that at the same time, the number of target dynamic patterns displayed by the target display area of the starry sky top will not exceed its display upper limit; and at different times, the number of target dynamic patterns displayed by the target display area of the starry sky top is also relatively close.
[0224] The following provides an optional method for determining the layout information of each target dynamic pattern in the target display area of the starry sky top according to the duration of each target dynamic pattern:
[0225] Preset period T: This is a pre-set time range for controlling the target display area of the starry sky top to display multiple target dynamic patterns, such as 30 seconds. Maximum display number N of the target display area of the starry sky top: The maximum number of target dynamic patterns that can be displayed in the target display area of the starry sky top at the same time, such as 10. Number of target dynamic patterns M: The total number of target dynamic patterns that need to be displayed, such as 60.
[0226] If M is less than or equal to N, that is, the number of target dynamic patterns does not exceed the maximum display number of the target display area of the starry sky top. However, in this case, no matter how the duration of each target dynamic pattern is allocated, the target display area of the starry sky top has enough space to display all target dynamic patterns, that is, there is no position conflict between the target dynamic patterns in the target display area of the starry sky top. At this time, batch display is usually not adopted, but all target dynamic patterns are displayed at the same time, that is, the same duration is configured for all target dynamic patterns until the preset period ends; or, all target dynamic patterns are displayed randomly, that is, different durations are randomly configured for all target dynamic patterns until the preset period ends.
[0227] If M is greater than N, that is, the number of target dynamic patterns exceeds the maximum display number of the target display area of the starry sky top, then in order to resolve the position conflict of different target dynamic patterns in the target display area of the starry sky top, it is necessary to display the target dynamic patterns in batches. Assume that all target dynamic patterns are divided into X batches, and the number of target dynamic patterns in each batch should be less than or equal to N, so that the target display area of the starry sky top does not produce position conflicts when displaying the target dynamic patterns of the same batch. Further, assuming that the duration of each batch is t, then t = T / X.
[0228] For any batch of target dynamic patterns, within the duration t of the batch, the same duration is configured for all target dynamic patterns of the batch until the duration t of the batch ends; or, within the duration t of the batch, different durations are randomly configured for all target dynamic patterns of the batch until the duration t of the batch ends.
[0229] After determining the duration of each target dynamic pattern, the layout information of each target dynamic pattern in the target display area of the starry sky top can be determined according to the duration of each target dynamic pattern. Specifically, for each target dynamic pattern, a corresponding display point is allocated to it according to its duration to ensure that the position of the target dynamic pattern in the target display area of the starry sky top does not overlap or conflict with other target dynamic patterns.
[0230] For example, assuming that within a preset period, the duration of target dynamic pattern A is from the 0th second to the 2nd second, the duration of target dynamic pattern B is from the 1st second to the 3rd second, and the duration of target dynamic pattern C is from the 2nd second to the 4th second. It can be seen that the duration of target dynamic pattern A overlaps with the duration of target dynamic pattern B, and different layout information should be determined for target dynamic pattern A and target dynamic pattern B, that is, target dynamic pattern A and target dynamic pattern B are displayed at different positions of the target display area of the starry sky top to avoid conflicts; the duration of target dynamic pattern A and the duration of target dynamic pattern C do not overlap, and different layout information can be determined for target dynamic pattern A and target dynamic pattern C, or the same layout information can be determined for target dynamic pattern A and target dynamic pattern C, and target dynamic pattern A and target dynamic pattern C will not conflict in position.
[0231] After determining the duration and layout information of each target dynamic pattern, the starry sky top can be further controlled to display multiple target dynamic patterns in the target display area according to the duration and layout information of each target dynamic pattern. In the process of displaying the target dynamic pattern in the target display area of the starry sky top, the color and brightness of the display point corresponding to the target dynamic pattern can be adjusted (lighting on and off can also be regarded as a kind of brightness adjustment method) so that the target dynamic pattern presents a dynamic visual effect.
[0232] In this embodiment, by determining the duration of each target dynamic pattern within a preset period and further determining the layout information of each target dynamic pattern, a data basis is provided for the subsequent starry sky top display. Taking into account the duration and layout information of each target dynamic pattern, the starry sky top is controlled to display multiple target dynamic patterns in the target display area, which can avoid the position conflicts that may exist in the starry sky top display process of multiple target dynamic patterns, and provide users with a good visual experience.
[0233] Based on the above Figure 1 The starry sky top shown, and Figure 2 - Fig.12 The embodiment shown in the figure provides a starry sky ceiling display system arranged in a vehicle. Fig.13 , Fig.13 It is a structural schematic diagram of a starry sky ceiling display system provided in an embodiment of the present application.
[0234] Among them, the starry sky roof display system includes a camera, a precipitation sensor, a system-level chip, a body control module (Body Control Module, BCM), a starry sky roof control module and a starry sky roof.
[0235] Camera: used to collect images of the vehicle's external environment and transmit them to the system-level chip;
[0236] Precipitation sensor: including a rain sensor and / or a snow sensor, which can obtain the second precipitation state detection information and the second current precipitation amount, and transmit the second precipitation state detection information and the second current precipitation amount to the system-level chip. The definitions of the second precipitation state detection information and the second current precipitation amount are detailed in Figure 4 , Figure 5 The embodiments shown will not be described in detail here.
[0237] System-on-chip: As the main control unit of the smart cockpit in the vehicle, the system-on-chip is a highly integrated electronic system that integrates multiple functional modules into a single chip, thereby improving system performance, reducing power consumption, and reducing physical size. The core goal of system-on-chip design is to integrate various components on a single chip in order to achieve a more compact and efficient electronic system. The system-on-chip can realize related logical operations, data transmission, etc. The system-on-chip is usually composed of a processor core, a graphics processor, and a communication interface. Among them, the processor core is responsible for performing computing tasks; the graphics processor is responsible for handling graphics-related tasks, such as rendering 3D graphics, video decoding, etc.; the communication interface is responsible for handling wireless and wired communication functions, such as Wi-Fi, Bluetooth, Ethernet, etc. In SoC, the communication interface can integrate a variety of different communication standards and protocols.
[0238] The system-level chip can also receive the above-mentioned external environment image, the second precipitation state detection information and the second current precipitation amount. Among them, the system-level chip also supports the analysis of the external environment image to determine the first current precipitation amount and the first precipitation state detection information. The system-level chip performs the relevant steps of the vehicle control mentioned in the above embodiment based on the external environment image, the first current precipitation amount, the first precipitation state detection information, the second current precipitation amount and the second precipitation state detection information to determine multiple target dynamic patterns. In addition, the system-level chip generates corresponding instructions based on the determined multiple target dynamic patterns, and the instructions are used to control the starry sky top to display multiple target dynamic patterns.
[0239] Body control module: The body control module serves as the hub connecting the system-level chip and the starry sky top control module. It is responsible for receiving instructions issued by the system-level chip and transmitting the instructions to the starry sky top control module.
[0240] Starry sky roof control module: The starry sky roof control module can receive instructions from the system-level chip forwarded by the body control module, and control the starry sky roof to display multiple target dynamic patterns through the instructions.
[0241] Starry sky ceiling: The starry sky ceiling is composed of multiple display points. Each display point is achieved by integrating one end of the optical fiber into the back of the car roof and using the optical fiber to transmit the light source so that the light forms a bright spot at the end of the optical fiber. The starry sky ceiling displays multiple target dynamic patterns under the control of the starry sky ceiling control module.
[0242] The following is a description of the data transmission between the components in the starry sky display system:
[0243] The camera transmits the external environment image to the system-level chip based on the Controller Area Network (CAN) bus or Ethernet;
[0244] The precipitation sensor transmits the second precipitation state detection information and the second current precipitation amount to the system-level chip through the CAN bus;
[0245] The system-level chip transmits the command to the body control module via the CAN bus;
[0246] The body control module transmits the command to the star top control module via the Local Interconnect Network (LIN) bus;
[0247] The starry sky top control module is connected to the starry sky top in communication, and the communication connection method is not limited.
[0248] See also Fig.14 , which is a schematic diagram of the structure of a vehicle provided in the embodiment of the present application. Fig.14 As shown, the vehicle 900 includes a processor 901 and a memory 902. The processor 901 is electrically connected to the memory 902, and the vehicle 900 is provided with a starry sky roof.
[0249] The processor 901 is the control center of the vehicle 900 and may include one or more processing cores. The processor 901 uses various interfaces and lines to connect various parts of the entire vehicle 900, and executes various functions and processes data of the vehicle 900 by running or calling computer programs stored in the memory 902, and calling data stored in the memory 902, so as to control the vehicle 900 as a whole. Optionally, the processor 901 may be implemented in at least one hardware form of digital signal processing (DSP), field programmable gate array (FPGA), and programmable logic array (PLA). The processor 901 may integrate one or a combination of CPU, graphics processing unit (GPU), modem, etc. Among them, the CPU mainly processes the operating system, user pages, and applications; the GPU is responsible for rendering and drawing display content; and the modem is used to process wireless communications. It is understandable that the above-mentioned modem may not be integrated into the processor 901, but may be implemented separately through a communication chip.
[0250] The memory 902 may be used to store software programs and modules, and the processor 901 executes various functional applications and data processing by running the computer programs and modules stored in the memory 902. The memory 902 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, a computer program required for at least one function, etc.; the data storage area may store data created according to the use of the vehicle 900, etc.
[0251] In addition, the memory 902 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices. Accordingly, the memory 902 may also include a memory controller to provide the processor 901 with access to the memory 902.
[0252] In this embodiment, the processor 901 in the vehicle 900 loads instructions corresponding to the processes of one or more computer programs into the memory 902 according to the following steps, and the processor 901 runs the computer program stored in the memory 902 to implement various functions, as follows:
[0253] If precipitation is detected in the environment where the vehicle is located, the current precipitation amount of the environment where the vehicle is located is obtained;
[0254] determining a plurality of target dynamic patterns according to the current precipitation, wherein the number of the target dynamic patterns is positively correlated with the current precipitation;
[0255] In the preset period, the starry sky top is controlled to display multiple target dynamic patterns.
[0256] Optionally, when the processor 901 executes the following steps when obtaining the current precipitation amount of the vehicle's environment if precipitation is detected in the vehicle's environment: if precipitation is detected in the vehicle's environment, obtaining an external environment image captured by the vehicle's camera; determining a first current precipitation amount and a first weight of the first current precipitation amount based on the external environment image captured by the vehicle's camera; obtaining a second current precipitation amount and a second weight of the second current precipitation amount captured by the vehicle's precipitation sensor; and performing weighted summation based on the first current precipitation amount, the first weight, the second current precipitation amount, and the second weight to obtain the current precipitation amount.
[0257] Optionally, before executing the following steps of obtaining the current precipitation amount of the vehicle's environment if precipitation is detected in the vehicle's environment: obtaining an image of the external environment captured by the vehicle's camera; determining first precipitation status detection information based on the image of the external environment captured by the vehicle's camera; if the first precipitation status detection information indicates precipitation, obtaining second precipitation status detection information captured by the vehicle's precipitation sensor; and if the second precipitation status detection information indicates precipitation, determining that precipitation exists in the vehicle's environment.
[0258] Optionally, when the processor 901 determines multiple target dynamic patterns based on the current precipitation, it specifically performs: determining the target dynamic pattern based on the current precipitation and the mapping relationship between the precipitation and the dynamic pattern; determining the number of target dynamic patterns based on the current precipitation and the mapping relationship between the precipitation and the number, wherein the number of target dynamic patterns is multiple.
[0259] Optionally, when the processor 901 determines multiple target dynamic patterns according to the current precipitation, it specifically performs: determining the target display strategy according to the current precipitation and the mapping relationship between the precipitation and the display strategy, wherein the target display strategy includes the target dynamic pattern and the number of the target dynamic patterns.
[0260] Optionally, when the processor 901 controls the starry sky top to display multiple target dynamic patterns within a preset period, it specifically performs: determining the duration of each target dynamic pattern among the multiple target dynamic patterns within the preset period; determining the layout information of each target dynamic pattern on the starry sky top based on the duration of each target dynamic pattern; and controlling the starry sky top to display multiple target dynamic patterns based on the duration and layout information of each target dynamic pattern.
[0261] Optionally, when the processor 901 controls the starry sky top to display multiple target dynamic patterns according to the duration and layout information of each target dynamic pattern, it specifically executes: for any one of the multiple target dynamic patterns to be displayed, if the current moment is the same as the starting moment of the duration of the dynamic pattern to be displayed, then according to the layout information of the target dynamic pattern, multiple display points of the dynamic pattern to be displayed are determined on the starry sky top; during the duration of the dynamic pattern to be displayed, the color and / or brightness of the multiple display points of the dynamic pattern to be displayed are controlled so that the multiple display points of the dynamic pattern to be displayed produce a dynamic display effect.
[0262] Optionally, when the processor 901 controls the starry sky top to display multiple target dynamic patterns according to the duration and layout information of each target dynamic pattern, the processor 901 specifically executes: for any one of the multiple target dynamic patterns to be displayed, if the current moment is the same as the starting moment of the duration of the dynamic pattern to be displayed, then according to the layout information of the target dynamic pattern, multiple display points of the dynamic pattern to be displayed are determined on the starry sky top; during the duration of the dynamic pattern to be displayed, the multiple display points of the dynamic pattern to be displayed are sequentially lit up so that the multiple display points of the dynamic pattern to be displayed produce a dynamic display effect.
[0263] Optionally, the starry sky ceiling includes multiple display areas, and the roof of the vehicle is provided with pressure sensors corresponding to each of the multiple display areas, and the detection direction of the pressure sensors is above the vehicle; after the processor 901 determines multiple target dynamic patterns according to the current precipitation, before controlling the starry sky ceiling to display multiple target dynamic patterns within a preset period, the processor 901 specifically executes: obtaining the pressure value collected by the pressure sensor corresponding to each display area; determining the target display area from the multiple display areas according to the pressure value collected by the pressure sensor corresponding to each display area; when the processor 901 controls the starry sky ceiling to display multiple target dynamic patterns within the preset period, the processor 901 specifically executes: within the preset period, controlling the starry sky ceiling to display multiple target dynamic patterns in the target display area.
[0264] Optionally, when determining a target display area from multiple display areas based on the pressure values collected by the pressure sensors corresponding to each display area, the processor 901 specifically performs: from the multiple display areas, determining a display area whose pressure value collected by the pressure sensor is greater than a preset pressure value threshold as the target display area; or, from the multiple display areas, determining a preset number of display areas as the target display areas in order from large to small according to the pressure values collected by the pressure sensor.
[0265] Optionally, when the processor 901 controls the starry sky top to display multiple target dynamic patterns in the target display area within a preset period, it specifically performs the following: determining the duration of each target dynamic pattern among the multiple target dynamic patterns within the preset period; determining the layout information of each target dynamic pattern in the target display area of the starry sky top based on the duration of each target dynamic pattern; and controlling the starry sky top to display multiple target dynamic patterns in the target display area based on the duration and layout information of each target dynamic pattern.
[0266] The beneficial effects that can be achieved by this embodiment are detailed in the previous embodiments and will not be described again here.
[0267] An embodiment of the present application also provides a computer-readable storage medium, in which a computer program code is stored. When the computer program code is executed on a computer, the computer executes the above-mentioned related method steps to implement a vehicle control method provided by the above-mentioned embodiment.
[0268] This embodiment also provides a computer program product. When the computer program product is run on a computer, the computer is caused to execute the above-mentioned related steps to implement a vehicle control method provided by the above-mentioned embodiment.
[0269] Among them, the vehicle, computer-readable storage medium, computer program product or chip provided in this embodiment are all used to execute the corresponding methods provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding methods provided above and will not be repeated here.
[0270] The above contents are only specific implementation methods of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A vehicle control method, characterized in that: The vehicle is provided with a starry sky roof, and the method comprises: If precipitation is detected in the environment where the vehicle is located, obtaining the current precipitation amount in the environment where the vehicle is located; determining a plurality of target dynamic patterns according to the current precipitation, wherein the number of the target dynamic patterns is positively correlated with the current precipitation; In a preset period, the starry sky top is controlled to display a plurality of target dynamic patterns.
2. The method according to claim 1, characterized in that If precipitation is detected in the environment where the vehicle is located, obtaining the current precipitation amount in the environment where the vehicle is located includes: If precipitation is detected in the environment of the vehicle, obtaining an image of the external environment captured by a camera of the vehicle; determining a first current precipitation amount and a first weight of the first current precipitation amount based on an external environment image captured by a camera of the vehicle; Obtaining a second current precipitation amount collected by a precipitation sensor of the vehicle and a second weight of the second current precipitation amount; The current precipitation is obtained by performing a weighted summation based on the first current precipitation, the first weight, the second current precipitation, and the second weight.
3. The method according to claim 2, characterized in that If precipitation is detected in the environment where the vehicle is located, before obtaining the current precipitation amount in the environment where the vehicle is located, the method includes: Acquiring an external environment image captured by a camera of the vehicle; determining first precipitation state detection information based on an external environment image captured by a camera of the vehicle; If the first precipitation state detection information indicates precipitation, obtaining second precipitation state detection information collected by a precipitation sensor of the vehicle; If the second precipitation state detection information indicates precipitation, it is determined that precipitation exists in the environment where the vehicle is located.
4. The method according to claim 1, wherein The determining of a plurality of target dynamic patterns according to the current precipitation includes: Determining the target dynamic pattern according to the current precipitation and a mapping relationship between the precipitation and the dynamic pattern; The number of the target dynamic patterns is determined according to the current precipitation and a mapping relationship between precipitation and quantity, wherein the number of the target dynamic patterns is multiple.
5. The method according to claim 1, characterized in that The determining of a plurality of target dynamic patterns according to the current precipitation includes: A target display strategy is determined according to the current precipitation and a mapping relationship between the precipitation and the display strategy, wherein the target display strategy includes the target dynamic pattern and the number of the target dynamic patterns.
6. The method according to claim 1, wherein The step of controlling the starry sky top to display a plurality of target dynamic patterns within a preset period includes: Determining the duration of each of the target dynamic patterns within a preset period; Determining layout information of each target dynamic pattern on the starry sky top according to the duration of each target dynamic pattern; According to the duration and layout information of each target dynamic pattern, the starry sky top is controlled to display multiple target dynamic patterns.
7. The method according to claim 6, characterized in that The step of controlling the starry sky top to display a plurality of target dynamic patterns according to the duration and layout information of each target dynamic pattern includes: For any one of the target dynamic patterns to be displayed, if the current time is the same as the start time of the duration of the dynamic pattern to be displayed, determining multiple display points of the dynamic pattern to be displayed on the top of the starry sky according to the layout information of the target dynamic pattern; During the duration of the dynamic pattern to be displayed, the colors and / or brightness of the multiple display points of the dynamic pattern to be displayed are controlled so that the multiple display points of the dynamic pattern to be displayed produce a dynamic display effect.
8. The method according to claim 6, characterized in that The step of controlling the starry sky top to display a plurality of target dynamic patterns according to the duration and layout information of each target dynamic pattern includes: For any one of the target dynamic patterns to be displayed, if the current time is the same as the start time of the duration of the dynamic pattern to be displayed, determining multiple display points of the dynamic pattern to be displayed on the top of the starry sky according to the layout information of the target dynamic pattern; During the duration of the dynamic pattern to be displayed, multiple display points of the dynamic pattern to be displayed are sequentially lit up, so that the multiple display points of the dynamic pattern to be displayed produce a dynamic display effect.
9. The method according to claim 1, characterized in that The starry sky roof includes a plurality of display areas, and the roof of the vehicle is provided with a pressure sensor corresponding to each of the plurality of display areas, and the detection direction of the pressure sensor is upward of the vehicle; After determining a plurality of target dynamic patterns according to the current precipitation, and before controlling the starry sky top to display the plurality of target dynamic patterns within a preset period, the method further includes: Obtaining a pressure value collected by a pressure sensor corresponding to each of the display areas; determining a target display area from the plurality of display areas according to pressure values collected by pressure sensors corresponding to the display areas; The step of controlling the starry sky top to display a plurality of target dynamic patterns within a preset period includes: Within a preset period, the starry sky top is controlled to display a plurality of target dynamic patterns in the target display area.
10. The method according to claim 9, characterized in that The determining of the target display area from the plurality of display areas according to the pressure values collected by the pressure sensors corresponding to the display areas includes: From the plurality of display areas, the display area where the pressure value collected by the pressure sensor is greater than a preset pressure value threshold is determined as the target display area; or From the plurality of display areas, a preset number of the display areas are determined as the target display areas in order from large to small according to the pressure values collected by the pressure sensor.
11. The method according to claim 9, characterized in that The step of controlling the starry sky top to display a plurality of target dynamic patterns in the target display area within a preset period includes: Determining the duration of each of the target dynamic patterns within a preset period; determining layout information of each target dynamic pattern in the target display area of the starry sky top according to the duration of each target dynamic pattern; According to the duration and layout information of each target dynamic pattern, the starry sky top is controlled to display multiple target dynamic patterns in the target display area.
12. A vehicle, characterized in that: include: a memory for storing executable program code; A processor is configured to call and run the executable program code from the memory, so that the vehicle executes the method according to any one of claims 1 to 11.
13. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a computer program code, and when the computer program code is executed, the method according to any one of claims 1 to 11 is implemented.
