Vehicle-mounted atmosphere lamp control method, device and equipment and storage medium
By obtaining vehicle status information and automatically controlling the color and brightness of the vehicle-mounted ambient light, the problem of single change and complex operation of the vehicle-mounted ambient light in the existing technology is solved, and the driving safety of the vehicle is improved.
Patent Information
- Application Number
- CN202410928121.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-11
- Publication Date
- 2024-09-24
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The lighting state of existing car-mounted ambient lights changes in a relatively simple manner, making the driver's operation complex, which affects the driving safety of the car.
By obtaining vehicle status information, such as vehicle speed, vehicle gear position, door switch status and in-car audio data, the color and brightness of the vehicle ambient light are automatically controlled, and a pre-stored correspondence table is used to determine the target color and brightness to achieve dynamic adjustment.
It improves the diversity of the lighting states of the vehicle-mounted ambient light, reduces the driver's manual operations, and improves the driving safety of the vehicle.
Smart Images

Figure CN118683441A
Abstract
Description
Technical Field
[0001] The present disclosure relates to the automotive field, and in particular to a method, device, equipment and storage medium for controlling an in-vehicle ambient light. Background Art
[0002] As cars become increasingly intelligent, the quality and interactivity of cars have gradually become important considerations for consumers when choosing vehicles. The car's ambient lighting can significantly enhance the car's atmosphere and create a quality space, so it has gradually become a standard feature of cars.
[0003] Generally, the driver can manually select the color of the vehicle ambient light, as well as the changes of the vehicle ambient light, such as flashing, etc., on the control panel of the vehicle computer.
[0004] When the vehicle-mounted ambient light is controlled in this manner, the change of the luminous state of the vehicle-mounted ambient light is relatively simple, and the driver's operation is relatively complicated, which affects the safety of the vehicle during driving. Summary of the invention
[0005] The embodiments of the present disclosure provide a method, device, equipment and storage medium for controlling a vehicle-mounted ambient light, which can solve the technical problems existing in the related art. The technical solution is as follows:
[0006] In a first aspect, an embodiment of the present disclosure provides a method for controlling a vehicle-mounted ambient light, the method being applied to a target vehicle, the target vehicle being equipped with a vehicle-mounted ambient light, the method comprising:
[0007] Acquiring status information of the target vehicle, the status information including at least one of vehicle speed, vehicle gear position, door switch status, and audio data played in the vehicle;
[0008] Based on the status information, the lighting status of the vehicle-mounted ambient light is controlled.
[0009] In a possible implementation, the state information includes vehicle speed;
[0010] The controlling the lighting state of the vehicle-mounted ambient light based on the state information includes:
[0011] Determining a target color corresponding to the speed range to which the vehicle speed belongs based on a pre-stored first correspondence between the vehicle speed range and the color;
[0012] The color of the vehicle ambient light is adjusted to the target color.
[0013] In a possible implementation, the state information includes a vehicle gear position, and the vehicle gear position includes a parking gear, a reverse gear, a neutral gear, a forward gear, and a sport gear;
[0014] The controlling the lighting state of the vehicle-mounted ambient light based on the state information includes:
[0015] Determining a target color corresponding to the vehicle gear position based on a pre-stored second correspondence between the vehicle gear position and the color;
[0016] The color of the vehicle ambient light is adjusted to the target color.
[0017] In a possible implementation, the state information includes a door switch state;
[0018] The controlling the lighting state of the vehicle-mounted ambient light based on the state information includes:
[0019] When the door switch state is that the door is open, adjusting the color of the vehicle ambient light to a preset target color;
[0020] gradually changing the brightness of the vehicle ambient light from a first threshold to a second threshold, and then gradually changing from the second threshold to a third threshold, wherein the second threshold is greater than the first threshold, and the second threshold is greater than the third threshold;
[0021] Turn off the vehicle ambient light.
[0022] In a possible implementation, the vehicle-mounted ambient light includes a plurality of light-emitting units, each light-emitting unit corresponds to a position coordinate, and the position coordinate includes a first coordinate in a length direction of the target vehicle and a second coordinate in a width direction of the target vehicle;
[0023] The state information includes audio data played in the vehicle;
[0024] The controlling the lighting state of the vehicle-mounted ambient light based on the state information includes:
[0025] For each light-emitting unit, based on a third correspondence between the first coordinate and the time difference stored in advance, a target time difference corresponding to the first coordinate of the light-emitting unit is determined; based on a fourth correspondence between the second coordinate and the frequency stored in advance, a target frequency corresponding to the second coordinate of the light-emitting unit is determined; the current first playback time point of the audio data is determined; based on the difference between the first playback time point and the target time difference, a second playback time point is determined; in the frequency spectrum data of the second playback time point of the audio data, a target loudness corresponding to the target frequency is determined; and based on the target loudness, the light-emitting state of the light-emitting unit is controlled.
[0026] In a possible implementation, the controlling the light-emitting state of the light-emitting unit based on the target loudness includes:
[0027] Determining a target brightness corresponding to the target loudness based on a pre-stored fifth correspondence between loudness and brightness;
[0028] The brightness of the light emitting unit is adjusted to the target brightness.
[0029] In a possible implementation, the state information further includes vehicle speed;
[0030] The method further comprises:
[0031] Determining a target color corresponding to the vehicle speed in the state information based on a pre-stored sixth correspondence between vehicle speed and color;
[0032] The color of the light emitting unit is adjusted to the target color.
[0033] In a possible implementation, the controlling the light-emitting state of the light-emitting unit based on the target loudness includes:
[0034] Determining a target color corresponding to the target loudness based on a seventh pre-stored correspondence between loudness and color;
[0035] The color of the light emitting unit is adjusted to the target color.
[0036] In a possible implementation, determining the second playback time point based on the difference between the first playback time point and the target time difference includes:
[0037] When the difference between the first playback time point and the target time difference is a negative value, determining the second playback time point to be 0;
[0038] When the difference between the first playback time point and the target time difference is a non-negative value, it is determined that the second playback time point is equal to the difference.
[0039] In a possible implementation, the method further includes:
[0040] In the third corresponding relationship, the time difference corresponding to the first coordinate of the light-emitting unit closest to the front end of the target vehicle is 0.
[0041] In a possible implementation, the method further includes:
[0042] When the ambient light intensity is lower than the light intensity threshold and a target object is detected in front of the target vehicle, determining a target distance of the target object relative to the target vehicle;
[0043] Determine the target brightness corresponding to the target distance based on the pre-stored correspondence between the distance and the brightness, wherein the brightness is negatively correlated with the distance;
[0044] The brightness of the vehicle ambient light is adjusted to the target brightness.
[0045] In a possible implementation, the method further includes:
[0046] When receiving an instruction that the color of the vehicle ambient light changes from a first color to a second color, determining a color sequence from the first color to the second color in the color change table;
[0047] The color of the vehicle-mounted ambient light is controlled to change according to the color sequence.
[0048] In a possible implementation, the method further includes:
[0049] Get voice control instructions;
[0050] Based on the voice control command, the lighting state of the vehicle-mounted ambient light is controlled.
[0051] In a possible implementation, the method further includes:
[0052] Get touch panel operation instructions;
[0053] Based on the touch panel operation instruction, the lighting state of the vehicle-mounted ambient light is controlled.
[0054] In a second aspect, an embodiment of the present disclosure provides a device for controlling a vehicle-mounted ambient light, the device being applied to a target vehicle, the target vehicle being equipped with a vehicle-mounted ambient light, the device comprising:
[0055] An acquisition module, used to acquire the state information of the target vehicle, wherein the state information includes at least one of vehicle speed, vehicle gear position, door switch state, and audio data played in the vehicle;
[0056] A control module is used to control the lighting state of the vehicle-mounted ambient light based on the state information.
[0057] In a possible implementation, the state information includes vehicle speed;
[0058] The control module is used for:
[0059] Determining a target color corresponding to the speed range to which the vehicle speed belongs based on a pre-stored first correspondence between the vehicle speed range and the color;
[0060] The color of the vehicle ambient light is adjusted to the target color.
[0061] In a possible implementation, the state information includes a vehicle gear position, and the vehicle gear position includes a parking gear, a reverse gear, a neutral gear, a forward gear, and a sport gear;
[0062] The control module is used for:
[0063] Determining a target color corresponding to the vehicle gear position based on a pre-stored second correspondence between the vehicle gear position and the color;
[0064] The color of the vehicle ambient light is adjusted to the target color.
[0065] In a possible implementation, the state information includes a door switch state;
[0066] The control module is used for:
[0067] When the door switch state is that the door is open, adjusting the color of the vehicle ambient light to a preset target color;
[0068] gradually changing the brightness of the vehicle ambient light from a first threshold to a second threshold, and then gradually changing from the second threshold to a third threshold, wherein the second threshold is greater than the first threshold, and the second threshold is greater than the third threshold;
[0069] Turn off the vehicle ambient light.
[0070] In a possible implementation, the vehicle-mounted ambient light includes a plurality of light-emitting units, each light-emitting unit corresponds to a position coordinate, and the position coordinate includes a first coordinate in a length direction of the target vehicle and a second coordinate in a width direction of the target vehicle;
[0071] The state information includes audio data played in the vehicle;
[0072] The control module is used for:
[0073] For each light-emitting unit, based on a third correspondence between the first coordinate and the time difference stored in advance, a target time difference corresponding to the first coordinate of the light-emitting unit is determined; based on a fourth correspondence between the second coordinate and the frequency stored in advance, a target frequency corresponding to the second coordinate of the light-emitting unit is determined; the current first playback time point of the audio data is determined; based on the difference between the first playback time point and the target time difference, a second playback time point is determined; in the frequency spectrum data of the second playback time point of the audio data, a target loudness corresponding to the target frequency is determined; and based on the target loudness, the light-emitting state of the light-emitting unit is controlled.
[0074] In a possible implementation, the control module is used to:
[0075] Determining a target brightness corresponding to the target loudness based on a pre-stored fifth correspondence between loudness and brightness;
[0076] The brightness of the light emitting unit is adjusted to the target brightness.
[0077] In a possible implementation, the state information further includes vehicle speed;
[0078] The control module is also used for:
[0079] Determining a target color corresponding to the vehicle speed in the state information based on a pre-stored sixth correspondence between vehicle speed and color;
[0080] The color of the light emitting unit is adjusted to the target color.
[0081] In a possible implementation, the control module is used to:
[0082] Determining a target color corresponding to the target loudness based on a seventh pre-stored correspondence between loudness and color;
[0083] The color of the light emitting unit is adjusted to the target color.
[0084] In a possible implementation, the control module is used to:
[0085] When the difference between the first playback time point and the target time difference is a negative value, determining the second playback time point to be 0;
[0086] When the difference between the first playback time point and the target time difference is a non-negative value, it is determined that the second playback time point is equal to the difference.
[0087] In a possible implementation, the control module is further configured to:
[0088] In the third corresponding relationship, the time difference corresponding to the first coordinate of the light-emitting unit closest to the front end of the target vehicle is 0.
[0089] In a possible implementation, the control module is further configured to:
[0090] When the ambient light intensity is lower than the light intensity threshold and a target object is detected in front of the target vehicle, determining a target distance of the target object relative to the target vehicle;
[0091] Determine the target brightness corresponding to the target distance based on the pre-stored correspondence between the distance and the brightness, wherein the brightness is negatively correlated with the distance;
[0092] The brightness of the vehicle ambient light is adjusted to the target brightness.
[0093] In a possible implementation, the control module is further configured to:
[0094] When receiving an instruction that the color of the vehicle ambient light changes from a first color to a second color, determining a color sequence from the first color to the second color in the color change table;
[0095] The color of the vehicle-mounted ambient light is controlled to change according to the color sequence.
[0096] In a possible implementation, the control module is further configured to:
[0097] Get voice control instructions;
[0098] Based on the voice control command, the lighting state of the vehicle-mounted ambient light is controlled.
[0099] In a possible implementation, the control module is further configured to:
[0100] Get touch panel operation instructions;
[0101] Based on the touch panel operation instruction, the lighting state of the vehicle-mounted ambient light is controlled.
[0102] In a third aspect, an electronic device is provided, the electronic device comprising a memory and a processor, the memory being used to store computer instructions; the processor executes the computer instructions stored in the memory so that the electronic device executes the method of the first aspect and its possible implementation methods.
[0103] In a fourth aspect, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores a computer program code. When the computer program code is executed by an electronic device, the electronic device executes the method of the first aspect and possible implementations thereof.
[0104] In a fifth aspect, a computer program product is provided. The computer program product includes a computer program code. When the computer program code is executed by an electronic device, the electronic device executes the method of the first aspect and possible implementations thereof.
[0105] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure.
[0106] In the present disclosure, the vehicle status information such as vehicle speed, vehicle gear position, door switch status, and audio data played in the car can be used as reference factors to automatically control the lighting state of the vehicle ambient light without the driver having to operate the touch panel. In this way, under the influence of many reference factors, the lighting state of the vehicle ambient light changes more diversely, and the driver does not need to manually control it, which ensures the driving safety of the car to a certain extent. BRIEF DESCRIPTION OF THE DRAWINGS
[0107] In order to more clearly illustrate the technical solutions in the embodiments of the present disclosure, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0108] Figure 1 is a structural schematic diagram of a vehicle computer provided by an embodiment of the present disclosure;
[0109] Figure 2 It is a schematic diagram of a process of controlling a vehicle ambient light provided by an embodiment of the present disclosure;
[0110] Figure 3 is a schematic diagram of a process of controlling a vehicle ambient light provided by an embodiment of the present disclosure;
[0111] Figure 4 It is a structural schematic diagram of a device for controlling vehicle ambient light provided in an embodiment of the present disclosure. DETAILED DESCRIPTION
[0112] In order to make the objectives, technical solutions and advantages of the present disclosure more clear, the embodiments of the present disclosure will be further described in detail below with reference to the accompanying drawings.
[0113] The disclosed embodiment provides a method for controlling a vehicle-mounted atmosphere light, which can be applied to a target vehicle. A vehicle-mounted atmosphere light is installed in the target vehicle, and the vehicle-mounted atmosphere light can be composed of light emitting diodes (LEDs). The vehicle-mounted atmosphere light can have multiple light-emitting units, and the color of each light-emitting unit can be the same or different. Each light-emitting unit of the vehicle-mounted atmosphere light can change different colors. Specifically, red, green, and blue (RGB) lamp beads can be set in the vehicle-mounted atmosphere light, and various colors can be obtained by changing the three colors of red, green, and blue and superimposing them on each other. The vehicle-mounted atmosphere light can be installed at various positions on the vehicle according to the vehicle signal. For example, it can be installed under the seat, on the door interior panel, on the steering wheel, on the central control, on the foot brake, on the cup holder, on the roof, etc. The technician can install the vehicle-mounted atmosphere light according to the specific vehicle model, and the disclosed embodiment does not limit this.
[0114] The vehicle ambient light can be controlled by the vehicle computer, which is an in-vehicle infotainment device installed in the vehicle. Specifically, the vehicle computer can send the vehicle ambient light control signal to the vehicle's central gateway (CGW) through the controller area network (CAN), and then the CGW converts the vehicle ambient light control signal into a signal in the local interconnect network (LIN) communication mode, and transmits this signal to the vehicle ambient light to control the lighting state of the vehicle ambient light. Figure 1 As shown, the vehicle computer includes a processor 110, a memory 120, a communication component 130 and a display component 140, etc. The following describes each component separately:
[0115] The processor 110 may be a central processing unit (CPU), which may be used to analyze status information of the vehicle, etc.
[0116] The memory 120 may be various volatile memories or non-volatile memories, such as a solid state disk (SSD), a dynamic random access memory (DRAM), etc. The memory may be used to store pre-stored data, intermediate data, and result data in the process of vehicle control, for example, the colors of the vehicle ambient lights corresponding to different vehicle speed ranges, the colors of the vehicle ambient lights corresponding to different vehicle gear positions, etc.
[0117] The communication component 130 may be a wired network connector, a wireless fidelity (WiFi) module, a Bluetooth module, a cellular network communication module, etc. The communication component may be used to transmit data with other devices. For example, the communication component may transmit a signal to the CGW to control the lighting state of the vehicle ambient light, etc.
[0118] The display component 140 includes a display screen, which can display various options for controlling the vehicle ambient light, so that the user can control the vehicle ambient light on the screen.
[0119] Generally, the driver selects the color and state of the vehicle ambient light through the vehicle control panel. The changes of the ambient light are relatively simple, and the passenger experience is poor. In addition, the driver adjusts the lighting state of the vehicle ambient light while the car is driving, which poses a great safety hazard. The disclosed embodiment provides a method for controlling the vehicle ambient light. The vehicle ambient light changes in a variety of ways, which improves the passenger experience. In addition, the lighting state of the vehicle ambient light can be automatically adjusted according to the vehicle status information, which ensures the safety of the passengers to a certain extent. Figure 2 The processing flow of the method is shown, which may include the following steps:
[0120] Step 201, obtaining the status information of the target vehicle.
[0121] The vehicle status information includes at least one of the vehicle speed, vehicle gear position, door switch status, and audio data played in the vehicle. The following introduces each status information and the lighting status of the vehicle ambient light corresponding to the status information.
[0122] First, let's introduce the vehicle speed. The corresponding relationship between the vehicle speed range and the color of the vehicle ambient light can be established in advance, as shown in Table 1:
[0123] Table 1
[0124] Speed range (km / h) Car ambient light color 0-30 blue 31-50 green 51-70 brown 71-90 yellow 91-110 orange color Greater than 110 red
[0125] Table 1 is used to illustrate the vehicle speed range corresponding to the vehicle ambient light color. In actual operation, the technician can set the corresponding relationship between the vehicle speed range and the vehicle ambient light color according to the actual situation.
[0126] The following introduces the vehicle gear positions, which include parking gear, reverse gear, neutral gear, forward gear and sport gear. The corresponding relationship between each gear position and the color of the vehicle ambient light can be established in advance, as shown in Table 2:
[0127] Table 2
[0128] Vehicle gear Car ambient light color Parking blue Reverse gear green Neutral brown Forward gear yellow Sports orange color
[0129] Table 2 is used to illustrate the vehicle gear position corresponding to the vehicle ambient light color. In actual operation, the technician can set the corresponding relationship between the vehicle gear position and the vehicle ambient light color according to the actual situation.
[0130] The door switch status includes two states: door open and door closed.
[0131] The audio data played in the car can be three-dimensional spectrum data, and the three dimensions are frequency, time and loudness. The vehicle ambient light includes a plurality of light-emitting units, each light-emitting unit corresponds to a position coordinate, and the position coordinate includes a first coordinate in the length direction of the target vehicle and a second coordinate in the width direction of the target vehicle.
[0132] For each light-emitting unit, based on the pre-stored third correspondence between the first coordinate and the time difference, the target time difference corresponding to the first coordinate of the light-emitting unit is determined, and in the third correspondence, the time difference corresponding to the first coordinate of the light-emitting unit closest to the front end of the target vehicle can be set to 0. For the light-emitting units in the vertical direction, the same setting method can be adopted for the light-emitting units in the same vertical direction.
[0133] Based on the fourth correspondence between the second coordinate and the frequency stored in advance, the target frequency corresponding to the second coordinate of the light-emitting unit is determined, the current first playback time point of the audio data is determined, and the second playback time point is determined based on the difference between the first playback time point and the target time difference. In the spectrum data of the second playback time point of the audio data, the target loudness corresponding to the target frequency is determined. Wherein, the time difference is a time range, for example, 1s, and the time difference corresponding to each first coordinate can also change from small to large according to the change from small to large of the first coordinate. The first playback time point is the time point at which the audio is currently played. For each first coordinate, the first playback time point is subtracted from the time difference corresponding to the first coordinate. When the difference between the first playback time point and the target time difference is a non-negative value, the second playback time point is equal to the difference. The second playback time point corresponds to the target frequency, and the loudness corresponding to the target frequency is determined. A corresponding relationship is established between the loudness and the color of the vehicle-mounted atmosphere lamp. Specifically, the loudness can be divided into multiple ranges, each of which corresponds to a color. In addition, a corresponding relationship between the loudness and the brightness of the vehicle-mounted atmosphere lamp can also be established. Specifically, the loudness can be divided into multiple time ranges, each of which corresponds to a brightness.
[0134] Step 202: Control the lighting state of the vehicle ambient light based on the state information.
[0135] The lighting state of the vehicle atmosphere light can be controlled based on the correspondence between the vehicle speed range and the color of the vehicle atmosphere light in Table 1. Specifically, a time period is set, and each time the time period is reached, the current speed of the car is obtained, and then the speed range described by the speed is determined, and the color of the vehicle atmosphere is adjusted to the color corresponding to the speed range. The time period can be one minute or 30 seconds, and the relevant technical personnel can set it by themselves. The embodiment of the present disclosure does not limit this. For example, when the vehicle speed is obtained to be 50km / h, the color of the vehicle atmosphere light is adjusted to blue.
[0136] Optionally, the lighting state of the vehicle ambient light can be controlled based on the correspondence between the vehicle gear position and the color of the vehicle ambient light in Table 2. Specifically, the gear position of the vehicle is obtained, and then the color of the vehicle ambient light corresponding to the gear position is determined, and the vehicle ambient light is adjusted to the color corresponding to the gear position. For example, if the current gear position of the vehicle is obtained to be neutral, the color of the vehicle ambient light is adjusted to brown.
[0137] Optionally, the lighting state of the vehicle-mounted atmosphere light can be controlled based on the door switch state of the vehicle. When the door is opened, the vehicle-mounted atmosphere light is turned on and adjusted to the target color to create a "dynamic door opening welcome" effect. The target color can be set by relevant technical personnel or selected by the user himself, and the disclosed embodiment does not limit this. When the door switch state is that the door is open, the color of the vehicle-mounted atmosphere light is adjusted to a preset target color, and the brightness of the vehicle-mounted atmosphere light is gradually changed from the first threshold to the second threshold, and then from the second threshold to the third threshold, wherein the second threshold is greater than the first threshold, and the second threshold is greater than the third threshold, and finally the vehicle-mounted atmosphere light is turned off. Make the vehicle-mounted atmosphere light achieve a gradual effect. Specifically, the brightness of the vehicle-mounted atmosphere light can be divided into multiple levels in advance, each threshold corresponds to a level, and the higher the level, the brighter the vehicle-mounted atmosphere light. The above-mentioned vehicle-mounted atmosphere light presents a changing state from dark to bright and then to dark.
[0138] Optionally, the vehicle ambient light may be controlled based on the audio data. Specifically, the light-emitting unit may be adjusted to a target color based on the loudness corresponding to each light-emitting unit and the color corresponding to the loudness.
[0139] In addition, the lighting state of the vehicle ambient light can also be controlled based on the above-mentioned audio data and vehicle speed two status information. Specifically, based on the loudness corresponding to each light-emitting unit and the brightness corresponding to the loudness, the brightness of the light-emitting unit is controlled to adjust each light-emitting unit to the target brightness, and based on the color corresponding to the vehicle speed, the color of the light-emitting unit is controlled to adjust the color of each light-emitting unit to the target color.
[0140] In addition, the brightness of the vehicle ambient light can also be considered to interfere with the driver's vision. The brightness of the vehicle ambient light can be adjusted based on the ambient light and the situation in front of the vehicle to ensure the safety of the vehicle during driving to a certain extent. The corresponding processing flow is as follows Figure 3 As shown, the following steps are included:
[0141] Step 301 : when the ambient light intensity is lower than the light intensity threshold and a target object is detected in front of a target vehicle, a target distance of the target object relative to the target vehicle is determined.
[0142] A light sensor is installed on the outside of the vehicle, which can sense the intensity of light. The light sensor can be installed in front of the vehicle so that the light sensor can sense not only sunlight, but also the light from the headlights of the opposite vehicle, so that the light sensed by the light sensor is closer to the light sensed by the human eye. Sunlight, the light from the headlights of other vehicles, and the light from street lamps can be collectively referred to as ambient light.
[0143] Radars, cameras and other equipment are also installed on the outside of the vehicle. Radars and cameras can be installed in the front of the vehicle. Radars detect surrounding objects by emitting electromagnetic waves and returning signals. Cameras can directly capture image data and detect objects within the camera's shooting range based on the image data.
[0144] A light intensity threshold is set in advance. When the ambient light is lower than the light intensity threshold, it means that the external environment around the vehicle is dark, and radar, camera and other equipment can detect the situation in front of the vehicle. At this time, if the brightness of the vehicle ambient light is too high, the driver will not be able to observe the object in front of the vehicle in time, which is prone to traffic accidents. The light intensity threshold can be set by relevant technicians, and the embodiments of the present disclosure do not limit this.
[0145] Step 302: determining the target brightness corresponding to the target distance based on the pre-stored correspondence between distance and brightness.
[0146] The corresponding relationship between distance and brightness is established in advance. The brightness is negatively correlated with the distance. The farther the distance, the lower the brightness, and the closer the distance, the higher the brightness, so that the driver can better observe the situation ahead.
[0147] There may be multiple objects in front of the vehicle detected by the radar or camera, and multiple objects correspond to multiple distances. The closest distance can be used as the target distance, and the target brightness of the vehicle ambient light can be determined based on the target distance.
[0148] Step 303, adjusting the brightness of the vehicle ambient light to the target brightness.
[0149] Only the brightness of the vehicle ambient lights that affect the driver's field of vision, such as the vehicle ambient lights in the front row, can be adjusted, while the brightness of the vehicle ambient lights that do not affect the driver's field of vision does not need to be adjusted. The brightness of all vehicle ambient lights can also be adjusted, which is not limited in the embodiments of the present disclosure.
[0150] When the color of the vehicle ambient light changes, for example, the color of the vehicle ambient light changes from a first color to a second color, the change from the first color to the second color may be in a gradual form. Specifically, when an instruction is received that the color of the vehicle ambient light changes from a first color to a second color, in the color change table, a color sequence from the first color to the second color is determined, and the color of the vehicle ambient light is controlled to change according to the color sequence.
[0151] The color change table can be in various forms, for example, a color wheel, etc., in which a first color and a second color are determined, and then multiple colors between the first color and the second color are determined and sorted in sequence. The color of the vehicle ambient light is controlled to change according to the color sequence. In addition, a time range can be set for the color change, which indicates the time taken to change from the first color to the second color.
[0152] Next, we will introduce two ways to control the car's ambient light.
[0153] The first method: obtaining voice control commands, and controlling the lighting state of the vehicle ambient light based on the voice control commands.
[0154] The voice control command can be a simple "turn on the vehicle atmosphere light" and "turn off the vehicle atmosphere light", etc., or the voice control command can indicate the position of the vehicle atmosphere light to be turned on, such as turning on the vehicle atmosphere light in the front row, rear row or top. In addition, the above-mentioned modes can be turned on based on the voice control command. Specifically, a name is specified for each of the above-mentioned operations for controlling the lighting state of the vehicle atmosphere light based on the status information. For example, the mode for controlling the lighting state of the vehicle atmosphere light based on the vehicle speed can be called "vehicle speed mode". When the voice control command includes "turn on vehicle speed mode", the vehicle atmosphere light is turned on and the lighting state of the vehicle atmosphere light is controlled based on the vehicle speed.
[0155] The second method is to obtain a touch panel operation instruction, and control the lighting state of the vehicle-mounted ambient light based on the touch panel operation instruction.
[0156] The touch panel includes multiple buttons, and the driver can trigger the buttons to control the vehicle ambient light. The color of the vehicle ambient light can be set. The interface can display a color palette. The user selects a color on the palette and then adjusts the vehicle ambient light to the color selected by the user. The interface also includes a brightness adjustment case, and the user can select the brightness level to adjust the brightness of the vehicle ambient light.
[0157] In addition, a gesture trigger mechanism may be provided, and the user may control the color and change of the vehicle ambient light by drawing a regular shape on the operation panel. For example, a spiral-shaped gesture may be provided to indicate that the brightness of the vehicle ambient light changes from bright to dark and then to bright, etc., and the embodiments of the present disclosure are not limited to this.
[0158] In the disclosed embodiment, the vehicle status information such as vehicle speed, vehicle gear position, door switch status, and audio data played in the car can be used as reference factors to automatically control the lighting state of the vehicle ambient light without the driver having to operate the touch panel. In this way, under the influence of many reference factors, the lighting state of the vehicle ambient light changes more diversely, and the driver does not need to manually control it, which ensures the driving safety of the car to a certain extent.
[0159] Based on the same technical concept, the embodiment of the present disclosure provides a device for controlling a vehicle-mounted atmosphere light, and the device is applied to a target vehicle, and the target vehicle is equipped with a vehicle-mounted atmosphere light, such as Figure 4 As shown, the device comprises:
[0160] An acquisition module 410 is used to acquire the state information of the target vehicle, wherein the state information includes at least one of the vehicle speed, vehicle gear position, door switch state, and audio data played in the vehicle;
[0161] The control module 420 is used to control the lighting state of the vehicle-mounted ambient light based on the state information.
[0162] In a possible implementation, the state information includes vehicle speed;
[0163] The control module 420 is used to:
[0164] Determining a target color corresponding to the speed range to which the vehicle speed belongs based on a pre-stored first correspondence between the vehicle speed range and the color;
[0165] The color of the vehicle ambient light is adjusted to the target color.
[0166] In a possible implementation, the state information includes a vehicle gear position, and the vehicle gear position includes a parking gear, a reverse gear, a neutral gear, a forward gear, and a sport gear;
[0167] The control module 420 is used to:
[0168] Determining a target color corresponding to the vehicle gear position based on a pre-stored second correspondence between the vehicle gear position and the color;
[0169] The color of the vehicle ambient light is adjusted to the target color.
[0170] In a possible implementation, the state information includes a door switch state;
[0171] The control module 420 is used to:
[0172] When the door switch state is that the door is open, adjusting the color of the vehicle ambient light to a preset target color;
[0173] gradually changing the brightness of the vehicle ambient light from a first threshold to a second threshold, and then gradually changing from the second threshold to a third threshold, wherein the second threshold is greater than the first threshold, and the second threshold is greater than the third threshold;
[0174] Turn off the vehicle ambient light.
[0175] In a possible implementation, the vehicle-mounted ambient light includes a plurality of light-emitting units, each light-emitting unit corresponds to a position coordinate, and the position coordinate includes a first coordinate in a length direction of the target vehicle and a second coordinate in a width direction of the target vehicle;
[0176] The state information includes audio data played in the vehicle;
[0177] The control module 420 is used to:
[0178] For each light-emitting unit, based on a third correspondence between the first coordinate and the time difference stored in advance, a target time difference corresponding to the first coordinate of the light-emitting unit is determined; based on a fourth correspondence between the second coordinate and the frequency stored in advance, a target frequency corresponding to the second coordinate of the light-emitting unit is determined; the current first playback time point of the audio data is determined; based on the difference between the first playback time point and the target time difference, a second playback time point is determined; in the frequency spectrum data of the second playback time point of the audio data, a target loudness corresponding to the target frequency is determined; and based on the target loudness, the light-emitting state of the light-emitting unit is controlled.
[0179] In a possible implementation, the control module 420 is configured to:
[0180] Determining a target brightness corresponding to the target loudness based on a pre-stored fifth correspondence between loudness and brightness;
[0181] The brightness of the light emitting unit is adjusted to the target brightness.
[0182] In a possible implementation, the state information further includes vehicle speed;
[0183] The control module 420 is further used for:
[0184] Determining a target color corresponding to the vehicle speed in the state information based on a pre-stored sixth correspondence between vehicle speed and color;
[0185] The color of the light emitting unit is adjusted to the target color.
[0186] In a possible implementation, the control module 420 is configured to:
[0187] Determining a target color corresponding to the target loudness based on a seventh pre-stored correspondence between loudness and color;
[0188] The color of the light emitting unit is adjusted to the target color.
[0189] In a possible implementation, the control module 420 is configured to:
[0190] When the difference between the first playback time point and the target time difference is a negative value, determining the second playback time point to be 0;
[0191] When the difference between the first playback time point and the target time difference is a non-negative value, it is determined that the second playback time point is equal to the difference.
[0192] In a possible implementation, the control module 420 is further configured to:
[0193] In the third corresponding relationship, the time difference corresponding to the first coordinate of the light-emitting unit closest to the front end of the target vehicle is 0.
[0194] In a possible implementation, the control module 420 is further configured to:
[0195] When the ambient light intensity is lower than the light intensity threshold and a target object is detected in front of the target vehicle, determining a target distance of the target object relative to the target vehicle;
[0196] Determine the target brightness corresponding to the target distance based on the pre-stored correspondence between the distance and the brightness, wherein the brightness is negatively correlated with the distance;
[0197] The brightness of the vehicle ambient light is adjusted to the target brightness.
[0198] In a possible implementation, the control module 420 is further configured to:
[0199] When receiving an instruction that the color of the vehicle ambient light changes from a first color to a second color, determining a color sequence from the first color to the second color in the color change table;
[0200] The color of the vehicle-mounted ambient light is controlled to change according to the color sequence.
[0201] In a possible implementation, the control module 420 is further configured to:
[0202] Get voice control instructions;
[0203] Based on the voice control command, the lighting state of the vehicle-mounted ambient light is controlled.
[0204] In a possible implementation, the control module 420 is further configured to:
[0205] Get touch panel operation instructions;
[0206] Based on the touch panel operation instruction, the lighting state of the vehicle-mounted ambient light is controlled.
[0207] In the disclosed embodiment, the vehicle status information such as vehicle speed, vehicle gear position, door switch status, and audio data played in the car can be used as reference factors to automatically control the lighting state of the vehicle ambient light without the driver having to operate the touch panel. In this way, under the influence of many reference factors, the lighting state of the vehicle ambient light changes more diversely, and the driver does not need to manually control it, which ensures the driving safety of the car to a certain extent.
[0208] It should be noted that: when the device for controlling the vehicle atmosphere light provided in the above embodiment performs the processing of vehicle control, only the division of the above functional modules is used as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the device for controlling the vehicle atmosphere light provided in the above embodiment and the method embodiment for controlling the vehicle atmosphere light belong to the same concept. The specific implementation process is detailed in the method embodiment and will not be repeated here.
[0209] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented by software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on the device, the process or function described in the embodiment of the present disclosure is generated in whole or in part. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) mode. The computer-readable storage medium can be any available medium that can be accessed by the device or a data storage device such as a server or data center that includes one or more available media integrated. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, and a tape, etc.), or an optical medium (e.g., a digital video disk (digital video disk, DVD), etc.), or a semiconductor medium (e.g., a solid-state hard disk, etc.).
[0210] A person skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware or by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.
[0211] The above description is only one embodiment of the present disclosure and is not intended to limit the present disclosure. Any modification, equivalent substitution, improvement, etc. made within the principles of the present disclosure shall be included in the protection scope of the present disclosure.
Claims
1. A method for controlling a vehicle ambient light, characterized in that: The method is applied to a target vehicle, the target vehicle is equipped with a vehicle-mounted ambient light, and the method comprises: Acquiring status information of the target vehicle, the status information including at least one of vehicle speed, vehicle gear position, door switch status, and audio data played in the vehicle; Based on the status information, the lighting status of the vehicle-mounted ambient light is controlled.
2. The method according to claim 1, characterized in that The state information includes vehicle speed; The controlling the lighting state of the vehicle-mounted ambient light based on the state information includes: Determining a target color corresponding to the speed range to which the vehicle speed belongs based on a pre-stored first correspondence between the vehicle speed range and the color; The color of the vehicle ambient light is adjusted to the target color.
3. The method according to claim 1, characterized in that The state information includes the vehicle gear position, and the vehicle gear position includes parking gear, reverse gear, neutral gear, forward gear and sport gear; The controlling the lighting state of the vehicle-mounted ambient light based on the state information includes: Determining a target color corresponding to the vehicle gear position based on a pre-stored second correspondence between the vehicle gear position and the color; The color of the vehicle ambient light is adjusted to the target color.
4. The method according to claim 1, characterized in that: The state information includes the door switch state; The controlling the lighting state of the vehicle-mounted ambient light based on the state information includes: When the door switch state is that the door is open, adjusting the color of the vehicle ambient light to a preset target color; gradually changing the brightness of the vehicle ambient light from a first threshold to a second threshold, and then gradually changing from the second threshold to a third threshold, wherein the second threshold is greater than the first threshold, and the second threshold is greater than the third threshold; Turn off the vehicle ambient light.
5. The method according to claim 1, characterized in that The vehicle-mounted ambient light includes a plurality of light-emitting units, each light-emitting unit corresponds to a position coordinate, and the position coordinate includes a first coordinate in the length direction of the target vehicle and a second coordinate in the width direction of the target vehicle; The state information includes audio data played in the vehicle; The controlling the lighting state of the vehicle-mounted ambient light based on the state information includes: For each light-emitting unit, based on a third correspondence between the first coordinate and the time difference stored in advance, a target time difference corresponding to the first coordinate of the light-emitting unit is determined; based on a fourth correspondence between the second coordinate and the frequency stored in advance, a target frequency corresponding to the second coordinate of the light-emitting unit is determined; the current first playback time point of the audio data is determined; based on the difference between the first playback time point and the target time difference, a second playback time point is determined; in the frequency spectrum data of the second playback time point of the audio data, a target loudness corresponding to the target frequency is determined; and based on the target loudness, the light-emitting state of the light-emitting unit is controlled.
6. The method according to claim 5, characterized in that The controlling the light-emitting state of the light-emitting unit based on the target loudness includes: Determining a target brightness corresponding to the target loudness based on a pre-stored fifth correspondence between loudness and brightness; The brightness of the light emitting unit is adjusted to the target brightness.
7. A device for controlling vehicle ambient light, characterized in that: The device is applied to a target vehicle, the target vehicle is equipped with a vehicle-mounted atmosphere light, and the device comprises: An acquisition module, used to acquire the state information of the target vehicle, wherein the state information includes at least one of vehicle speed, vehicle gear position, door switch state, and audio data played in the vehicle; A control module is used to control the lighting state of the vehicle-mounted ambient light based on the state information.
8. An electronic device, characterized in that: The electronic device comprises a memory and a processor, wherein the memory is used to store computer instructions; The processor executes the computer instructions stored in the memory to enable the electronic device to perform the method according to any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program code. When the computer program code is executed by an electronic device, the electronic device executes the method according to any one of claims 1 to 6.
10. A computer program product, characterized in that The computer program product comprises a computer program code. When the computer program code is executed by an electronic device, the electronic device executes the method according to any one of claims 1 to 6.
