Control method of vehicle-mounted atmosphere lamp and vehicle
By real-time identification of the cover color and audio signal rhythm of the music player interface and real-time adjustment of the ambient light color and brightness, the problem of inflexible ambient light control in the existing technology is solved, and more accurate matching of music and ambient light effects is achieved.
Patent Information
- Application Number
- CN202411926678.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-25
- Publication Date
- 2025-02-21
AI Technical Summary
The music rhythm mode of the existing car-mounted ambient lights is relatively dull, and it is impossible to flexibly follow the ambient light effects matching the performance of different music, resulting in the ambient light control being not flexible enough and the rhythm effect displayed is poor.
By real-time identification of the cover color of the music player interface displayed by the car machine, and combining the changes in the rhythm of the audio signal, a color signal and brightness control signal are generated, and the color and brightness of the ambient light are adjusted in real time to match the current music rhythm type and cover color.
It improves the flexibility of ambient light control, can follow the changes of music more accurately, displays the ambient light effect that matches the music, and improves the expressiveness of the atmosphere in the car.
Smart Images

Figure CN119489740A_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present invention relate to the field of automotive electronics technology, and in particular to a control method and device for a vehicle-mounted ambient light, a computer-readable storage medium, and a vehicle. Background Art
[0002] The vehicle ambient light is a component that enhances the visual experience of the interior atmosphere of the vehicle. The vehicle screen is an information display device of the multimedia control system, which can display multimedia interfaces such as music players. The existing technology changes the brightness and color of the vehicle ambient light to make the interior lights follow the music in the car, thereby improving the atmosphere in the car. However, the music rhythm mode of the traditional ambient light is relatively rigid, and it is impossible to display the matching ambient light effect with different music. The control of the ambient light is not flexible enough, and the displayed ambient light rhythm effect is poor. Summary of the invention
[0003] In view of the above problems, embodiments of the present invention provide a method and device for controlling a vehicle-mounted ambient light, a computer-readable storage medium, and a vehicle, so as to improve the flexibility of controlling the ambient light.
[0004] According to one aspect of an embodiment of the present invention, a method for controlling a vehicle-mounted ambient light is provided, which is applied to a first controller, and the method comprises: receiving a music playing request from a user, and determining whether the ambient light meets a start condition of a music rhythm mode;
[0005] If the ambient light meets the activation condition of the music rhythm mode, and the music rhythm mode of the ambient light is the color following mode,
[0006] then extracting the main color of the cover image of the music player interface displayed on the target display in real time, and determining the corresponding color to be emitted from all the luminous colors of the atmosphere light according to the main color, and generating a first color signal according to the color to be emitted;
[0007] The first color signal is sent to a second controller, so that the second controller controls the color of the atmosphere light according to the color signal of the atmosphere light.
[0008] Specifically, the control method of the vehicle-mounted ambient light provided by the present invention has the ability to identify the cover color of the music player interface displayed on the vehicle computer in real time. When the vehicle plays music, the first controller sends the cover color of the music player interface to the second controller, and the second controller calculates and controls the ambient light to display an ambient light effect that matches the current cover color according to the change of the cover color, thereby improving the flexibility of the ambient light control.
[0009] According to another aspect of an embodiment of the present invention, a method for controlling a vehicle ambient light is provided, which is applied to a second controller, and the method includes:
[0010] When receiving the target color signal sent by the first controller, receiving the audio analog signal from the target power amplifier in real time, performing frequency domain analysis on the audio analog signal played by the target power amplifier, and obtaining amplitude data of frequency domain signals of several frequency bands;
[0011] Wherein, the target color signal is generated by the first controller using the above-mentioned vehicle ambient light control method;
[0012] Taking the maximum amplitude of the frequency domain signal of each of the preset frequency bands, and taking the maximum value among the maximum amplitudes of the frequency domain signal of each of the preset frequency bands as reference data; and controlling the brightness of the atmosphere lamp according to the reference data;
[0013] The color of the atmosphere light is controlled according to the target color signal.
[0014] Specifically, the control method of the vehicle-mounted ambient light provided by the present invention has the ability to identify the cover color of the music player interface displayed on the vehicle computer and the music rhythm. When the vehicle plays music, the first controller sends the cover color of the music player interface to the second controller, and the second controller combines the cover color and the change of the audio signal rhythm to calculate and control the ambient light to display the ambient light effect matching the current music rhythm type and cover color, thereby improving the flexibility of the ambient light control.
[0015] According to another aspect of an embodiment of the present invention, a control device for a vehicle-mounted ambient light is provided, which is applied to a first controller and includes: a judgment module, a color extraction module and a signal sending module.
[0016] A judgment module is used to receive a music playing request from a user and judge whether the atmosphere light meets the start-up conditions of the music rhythm mode;
[0017] The color extraction module is used for, if the atmosphere light meets the start-up conditions of the music rhythm mode, and the music rhythm mode of the atmosphere light is the color following mode,
[0018] then extracting the main color of the cover image of the music player interface displayed on the target display in real time, and determining the corresponding color to be emitted from all the luminous colors of the atmosphere light according to the main color, and generating a first color signal according to the color to be emitted;
[0019] The signal sending module is used to send the first color signal to the second controller, so that the second controller controls the color of the atmosphere light according to the color signal of the atmosphere light.
[0020] According to another aspect of an embodiment of the present invention, a control device for a vehicle-mounted ambient light is provided, which is applied to a second controller and includes: an analysis module, a processing module and a control module.
[0021] An analysis module, configured to receive the target color signal sent by the first controller, receive the audio analog signal from the target power amplifier in real time, perform frequency domain analysis on the audio analog signal played by the target power amplifier, and obtain amplitude data of frequency domain signals of several frequency bands;
[0022] Wherein, the target color signal is generated by the first controller using the above-mentioned vehicle ambient light control method;
[0023] A processing module, used for obtaining the maximum amplitude of the frequency domain signal of each of the preset frequency bands, and taking the maximum value among the maximum amplitudes of the frequency domain signal of each of the preset frequency bands as reference data;
[0024] The control module is used to control the brightness of the atmosphere light according to the reference data; and to control the color of the atmosphere light according to the target color signal.
[0025] According to another aspect of an embodiment of the present invention, there is provided a vehicle, comprising: a first controller, a second controller, a target display, a target amplifier, and an atmosphere light;
[0026] The first controller is used to perform the operation of the above-mentioned vehicle ambient light control method;
[0027] The second controller is used to perform the operation of the above-mentioned vehicle ambient light control method;
[0028] The target display is used to display a music player interface;
[0029] The target power amplifier is used to process the target audio signal to obtain audio analog signals of several preset frequency bands; the target audio signal is sent by the first controller.
[0030] According to another aspect of an embodiment of the present invention, a computer-readable storage medium is provided, wherein the storage medium stores at least one executable instruction, wherein the executable instruction enables a device / apparatus to perform operations of the above-mentioned method for controlling a vehicle ambient light.
[0031] The above description is only an overview of the technical solution of the embodiment of the present invention. In order to more clearly understand the technical means of the embodiment of the present invention, it can be implemented according to the contents of the specification. In order to make the above and other purposes, features and advantages of the embodiment of the present invention more obvious and easy to understand, the specific implementation mode of the present invention is specifically listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] The accompanying drawings are only used to illustrate the embodiments and are not to be considered as limiting the present invention. In addition, the same reference symbols are used to represent the same components throughout the accompanying drawings. In the accompanying drawings:
[0033] Figure 1 A schematic flow chart of one embodiment of a method for controlling a vehicle ambient light provided by the present invention is shown;
[0034] Figure 2 A schematic flow chart showing another embodiment of a method for controlling a vehicle-mounted ambient light provided by the present invention;
[0035] Figure 3 A schematic flow chart of another embodiment of a method for controlling a vehicle ambient light provided by the present invention is shown;
[0036] Figure 4 A specific flow chart of a method for controlling a vehicle-mounted ambient light provided by the present invention is shown;
[0037] Figure 5 Another specific flow chart of the method for controlling the vehicle ambient light provided by the present invention is shown;
[0038] Figure 6 A schematic structural diagram of one embodiment of a control device for a vehicle-mounted ambient light provided by the present invention is shown;
[0039] Figure 7 A structural schematic diagram showing another embodiment of the control device for the vehicle atmosphere lamp provided by the present invention;
[0040] Figure 8 A schematic structural diagram of an embodiment of an intelligent cockpit controller provided by the present invention is shown;
[0041] Fig. 9 A schematic structural diagram of an embodiment of an atmosphere light controller provided by the present invention is shown;
[0042] Fig.10 A schematic structural diagram of an embodiment of a vehicle provided by the present invention is shown. DETAILED DESCRIPTION
[0043] Exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present invention are shown in the drawings, it should be understood that the present invention can be implemented in various forms and should not be limited to the embodiments set forth herein.
[0044] Embodiment 1, Figure 1 The flowchart of one embodiment of the vehicle ambient light control method provided by the present invention is shown, and the method is executed by a first controller. Preferably, the first controller is an intelligent cockpit controller. Figure 1 As shown, the method comprises the following steps:
[0045] Step 110: receiving a music playing request from the user, and determining whether the ambient light meets the start-up conditions of the music rhythm mode.
[0046] In some embodiments of the present invention, the user issues music playback instructions to the vehicle central control in a variety of ways, so that the vehicle central control sends the user's music playback request to the smart cockpit controller. Exemplarily, the user connects the hard disk drive (HDD) storing the music files to the vehicle playback device using the USB interface; or the playback device (such as a mobile phone, tablet computer) and the receiving device (vehicle playback device) need to be paired by Bluetooth. After the pairing is successful, the playback device sends the music signal to the receiving device wirelessly to play the Bluetooth music in the mobile phone in the car; or the corresponding music playback software is installed in the vehicle central control, and the online music data is transmitted from the server to the user's playback device through the network. The user issues a music playback instruction to play the music in the hard disk drive, online music or Bluetooth music by manually clicking on the music player interface of the target display or by voice control.
[0047] Specifically, the vehicle central control is connected to a target display (central control screen) and a target amplifier. After receiving a user's music play request, the smart cockpit controller controls the target display connected to the vehicle central control to display a music player interface with a cover image; and obtains a target audio signal according to a music source, and controls the target amplifier to play the target audio signal.
[0048] In some embodiments of the present invention, determining whether the ambient light meets the start-up condition of the music rhythm mode includes:
[0049] If the atmosphere light is not in a working state, determining that the atmosphere light meets the start-up condition of the music rhythm mode;
[0050] If the atmosphere light is in working state, the priority of the current working mode of the atmosphere light is compared with the priority of the music rhythm mode;
[0051] The priority of the working mode of the atmosphere light and the priority of the music rhythm mode are preset by the user;
[0052] If the priority of the music rhythm mode of the atmosphere light is higher than the priority of the current working mode, it is determined that the atmosphere light meets the start-up condition of the music rhythm mode.
[0053] In some embodiments of the present invention, the user pre-sets the priority of each working mode of the atmosphere light. Exemplarily, the working modes of the atmosphere light include: door opening warning mode. That is, after the vehicle is powered on and the door is not closed, the atmosphere light will light up to remind the owner that the door is not closed. At this time, the atmosphere light is in door opening warning mode. If the user sets the priority of the door opening warning mode to be higher than the priority of the music rhythm mode, then when the atmosphere light is in the door opening warning mode, the atmosphere light does not meet the start-up conditions of the music rhythm mode and will continue to be in the door opening warning mode until the door is closed.
[0054] Step 120: If the ambient light meets the start-up conditions of the music rhythm mode, and the music rhythm mode of the ambient light is the color following mode,
[0055] The main color of the cover image of the music player interface displayed on the target display is extracted in real time, and the corresponding color to be emitted is determined among all the luminous colors of the atmosphere light according to the main color, and a first color signal is generated according to the color to be emitted.
[0056] In some embodiments of the present invention, extracting the main color of the cover image of the music player interface in the target display in real time includes:
[0057] Identifying the color of each pixel in the cover image;
[0058] According to a preset color classification rule, each of the pixels is classified, pixels of the same color are classified into the same color group, a plurality of color groups are obtained, and the color group with the largest number of pixels is determined as the main color group;
[0059] The number of pixels with the same color in the main color group is counted, and the color with the largest number of pixels in the main color group is used as the main color of the cover image.
[0060] Preferably, the smart cockpit controller obtains the cover image of the music player interface displayed in the target display, imports the cover image into the image editing program, comprehensively scans and analyzes the cover image, and identifies the color of each pixel in the cover image. The smart cockpit controller uses the color clustering method to calculate the similarity of colors, and groups pixels whose color similarity is greater than a preset threshold together to form different color groups. The number of pixels in each color group is counted to distinguish between the main color and the auxiliary color in the image. For example, each color group corresponds to a color tone, and the color tone corresponding to the color group with the largest number of pixels is the main color tone, followed by the auxiliary color tone. The image editing program further counts the number of pixels with the same color in the main color group, and extracts the color with the largest number of pixels in the main color group as the color that has the greatest impact on the overall visual effect, that is, the main color of the cover image.
[0061] In some embodiments of the present invention, extracting the main color of the cover image of the music player interface displayed on the target display in real time also includes:
[0062] If the operation of extracting the main color of the cover image of the music player interface displayed on the target display fails, reading the main color of the historical cover image with the most recent recording time in the target storage space to generate a corresponding second color signal;
[0063] After each operation of extracting the main color of the cover image of the music player interface displayed on the target display, the extracted main color of the cover image is recorded in the target storage space as the main color of the historical cover image.
[0064] Preferably, the color coordinates of the main colors of the extracted cover image are recorded in the target storage space.
[0065] In some embodiments of the present invention, determining a corresponding color to be emitted from among all the emitting colors of the atmosphere lamp according to the main color includes:
[0066] Calculating the difference between the color coordinates of each luminous color of the ambient light and the color coordinates of the primary color respectively;
[0067] The luminescent color whose color coordinates have the smallest difference with the color coordinates of the primary color is selected as the corresponding color to be emitted.
[0068] In some embodiments of the present invention, the intelligent cockpit controller obtains the color coordinates of the luminous color of the ambient light according to the luminous parameters of the ambient light, and the ambient light has at least two luminous colors. The intelligent cockpit controller calculates the difference between the color coordinates of each luminous color and the color coordinates of the primary color, and selects the luminous color with the smallest difference as the color to be emitted.
[0069] Step 130: Send the first color signal to a second controller, so that the second controller controls the color of the atmosphere light according to the color signal of the atmosphere light.
[0070] Specifically, the intelligent cockpit controller converts the color to be emitted into a first color signal, and sends the first color signal to the second controller via a CAN FD (CAN with Flexible Data Rate, referred to as CAN FD) bus. Preferably, the second controller is an ambient light controller, which can be used to control the switch function, color and brightness of the ambient light.
[0071] The control method of the vehicle-mounted atmosphere light provided by the present invention has the ability to recognize the cover color of the music player interface displayed on the vehicle computer in real time. When the vehicle plays music, the first controller sends the cover color of the music player interface to the second controller, and the second controller calculates and controls the atmosphere light to display an atmosphere light effect matching the current cover color according to the change of the cover color, thereby improving the flexibility of the atmosphere light control.
[0072] Embodiment 2, Figure 2 FIG. 2 is a flow chart showing another embodiment of a method for controlling a vehicle-mounted ambient light provided by the present invention, wherein the method is executed by a first controller. Figure 2 As shown, the method comprises the following steps:
[0073] Step 210: Receive a music play request from the user and determine whether the ambient light meets the start-up conditions of the music rhythm mode.
[0074] Step 220: If the ambient light meets the activation condition of the music rhythm mode, and the music rhythm mode of the ambient light is not the color following mode,
[0075] Then, the corresponding color information is calculated according to the color data of the ambient light set by the user or the default color data; and the color information is converted into a third color signal.
[0076] Step 230: Send the third color signal to the second controller, so that the second controller controls the color of the ambient light according to the third color signal.
[0077] In some embodiments of the present invention, the user can set the color of the ambient light in the music rhythm mode and the default color of the ambient light in the music rhythm mode at any time. The color data of the ambient light set by the user in real time is monochrome data or multi-color data, and the default color data set by the user is monochrome data or multi-color data.
[0078] Among them, the user can specify one of the luminous colors of the atmosphere light as the color data; the user can set a random luminous color as the color data; the user can specify multiple luminous colors to cycle as the color data; the user can set multiple random luminous colors, or randomly cycle multiple luminous colors as the color data.
[0079] The first controller calculates the corresponding color information according to the color data of the atmosphere light set by the user or the default color data; if the user sets the color data of the atmosphere light, the color information is calculated using the color data of the atmosphere light set by the user. If the user does not set the color data of the atmosphere light, the color information is calculated using the default color data; the default color data is pre-stored in the first controller. The first controller converts the color information into a third color signal so that the second controller controls the color of the atmosphere light according to the third color signal.
[0080] This process is the same as the control method of the vehicle ambient light in the above embodiment, and will not be described in detail here.
[0081] Embodiment 3, Figure 3 FIG. 1 is a flow chart showing another embodiment of a method for controlling a vehicle-mounted ambient light provided by the present invention, wherein the method is executed by a second controller. Preferably, the second controller is an ambient light controller. Figure 3 As shown, the method comprises the following steps:
[0082] Step 310: when receiving the target color signal sent by the first controller, receiving the audio analog signal from the target power amplifier in real time, performing frequency domain analysis on the audio analog signal played by the target power amplifier, and obtaining amplitude data of frequency domain signals of several frequency bands;
[0083] Wherein, the target color signal is generated by the first controller using the above-mentioned vehicle ambient light control method.
[0084] In some embodiments of the present invention, the target color signal is the first color signal, the second color signal or the third color signal mentioned above.
[0085] In some embodiments of the present invention, an audio analog signal is received from a target power amplifier in real time, and a frequency domain analysis is performed on the audio analog signal played by the target power amplifier to obtain amplitude data of frequency domain signals of several preset frequency bands, including:
[0086] Receive audio analog signals of several preset frequency bands from a target power amplifier in real time;
[0087] The audio analog signals of the preset frequency bands are obtained by processing the target audio signal by the target power amplifier; the target audio signal is sent by the first controller;
[0088] The audio analog signals of several preset frequency bands are respectively subjected to frequency domain analysis to obtain frequency domain signals of several preset frequency bands and amplitude data of the frequency domain signals of several corresponding frequency bands.
[0089] Preferably, the smart cockpit controller transmits the target audio signal to the target amplifier via the Automotive Audio Bus (A2B). The target amplifier collects and quantizes the target audio signal transmitted by the smart cockpit controller, wherein the target audio signal is a digital signal. The target amplifier converts the target audio signals of different frequencies into analog signals of different frequency bands through a digital-to-analog converter (DAC), and sends them to the corresponding speaker channels respectively, tunes the analog signals in different channels according to the sense of hearing, and solidifies the amplification factors of the analog signals in different channels to play the analog signals. The atmosphere light controller receives analog signals from different channels of the target amplifier, and provides a fast Fourier transform algorithm (FFT) to convert the time domain signal into a frequency domain signal to obtain the corresponding signals of different frequency bands and their amplitude data.
[0090] Step 320: taking the maximum amplitude of the frequency domain signal of each of the preset frequency bands, and taking the maximum value among the maximum amplitudes of the frequency domain signal of each of the preset frequency bands as reference data; and controlling the brightness of the atmosphere light according to the reference data;
[0091] The color of the atmosphere light is controlled according to the target color signal.
[0092] In some embodiments of the present invention, controlling the brightness of the atmosphere light according to the reference data includes:
[0093] Determining a brightness value corresponding to the atmosphere light according to the reference data;
[0094] There is a preset corresponding relationship between the reference data and the brightness value of the atmosphere light;
[0095] The brightness of the atmosphere light is controlled according to the brightness value corresponding to the atmosphere light.
[0096] Preferably, the atmosphere light controller collects the maximum amplitude of the signal in each frequency band once at a preset time interval, and takes the maximum amplitude as the rhythmic energy point; according to the corresponding relationship between the rhythmic energy point and the brightness of the atmosphere light, the corresponding brightness value of the atmosphere light is obtained.
[0097] Exemplarily, the target power amplifier converts the target audio signals of different frequencies into analog signals of high frequency band (5KHz-15KHz), middle frequency band (2KHz-4KHz) and low frequency band (20Hz-400Hz), and sends them to the treble channel, middle frequency channel and bass channel of the speaker to play the analog signals. The atmosphere light controller converts the time domain signal into the frequency domain signal, collects the maximum amplitude of the high frequency band (5KHz-15KHz), middle frequency band (2KHz-4KHz) and low frequency band (20Hz-400Hz) every 10ms, and takes the maximum amplitude as the rhythm energy point (range 0-255).
[0098] The correspondence between the rhythmic energy points and the brightness values of the atmosphere lights is: energy points 0-29 correspond to a brightness value of 1, energy points 30-54 correspond to a brightness value of 2, energy points 55-79 correspond to a brightness value of 3, energy points 80-104 correspond to a brightness value of 4, energy points 105-129 correspond to a brightness value of 5, energy points 130-154 correspond to a brightness value of 6, energy points 155-179 correspond to a brightness value of 7, energy points 180-204 correspond to a brightness value of 8, energy points 205-229 correspond to a brightness value of 9, and energy points 230-255 correspond to a brightness value of 10.
[0099] Based on the ambient light brightness value calculated every 10ms, the ambient light controller sends the target color signal and brightness control signal (range 1-10) to the ambient light through the Lin (Local Interconnect Network) bus to control the ambient light for real-time display.
[0100] See also Figure 4 , the interaction between the intelligent cockpit controller, the atmosphere light controller, the central control screen, the power amplifier and the atmosphere light involved in executing the vehicle atmosphere light control method in some embodiments of the present invention is specifically described, including the following steps:
[0101] Step 401: The user issues a music playback command on the central control screen, and the vehicle central control sends the user's music playback request to the smart cockpit controller.
[0102] Step 402: The smart cockpit controller receives a music play request from the user and determines whether the ambient light meets the start-up conditions of the music rhythm mode.
[0103] Step 403: If the ambient light meets the start-up conditions of the music rhythm mode, and the music rhythm mode of the ambient light is the color following mode, the smart cockpit controller extracts the main color of the cover image of the music player interface displayed on the target display in real time.
[0104] Step 404: If the cover image of the music player interface is successfully acquired, the smart cockpit controller determines a corresponding color to be emitted from among all the luminous colors of the ambient light according to the main color, and generates a first color signal according to the color to be emitted;
[0105] If the cover image of the music player interface is not successfully obtained, the smart cockpit controller reads the main color of the historical cover image with the most recent recording time and generates a corresponding second color signal.
[0106] Step 405: The smart cockpit controller sends the first color signal / the second color signal to the ambient light controller.
[0107] Step 406: The power amplifier sends the audio analog signal to the ambient light controller.
[0108] Step 407: The ambient light controller receives the audio analog signal from the power amplifier, performs frequency domain analysis on the audio analog signal played by the target power amplifier, and obtains amplitude data of frequency domain signals of several frequency bands.
[0109] Step 408: The ambient light controller takes the maximum amplitude of the frequency domain signal of each preset frequency band, and takes the maximum value among the maximum amplitudes of the frequency domain signal of each preset frequency band as reference data; and determines the brightness value corresponding to the ambient light according to the reference data.
[0110] Step 409: The ambient light controller sends a target color signal and a brightness control signal to the ambient light according to the first color signal / second color signal sent by the smart cockpit controller and the brightness value corresponding to the ambient light, so that the ambient light executes the corresponding color and brightness.
[0111] See also Figure 5 , the interaction between the intelligent cockpit controller, the atmosphere light controller, the central control screen, the power amplifier and the speaker involved in executing the vehicle atmosphere light control method in some embodiments of the present invention is specifically described, including the following steps:
[0112] Step 501: The user issues a music playback command on the central control screen, and the vehicle central control sends the user's music playback request to the smart cockpit controller.
[0113] Step 502: The smart cockpit controller receives a music playing request from the user and sends a playing instruction of a target audio signal to the power amplifier.
[0114] Step 503: The power amplifier receives a play instruction of a target audio signal sent by the smart cockpit controller, and processes the target audio signal to obtain an audio analog signal.
[0115] Step 504: The power amplifier sends the audio analog signal to the speaker.
[0116] Step 505: The power amplifier sends the audio analog signal to the ambient light controller.
[0117] Step 506: The speaker plays the audio analog signal.
[0118] The control method of the vehicle-mounted ambient light provided by the present invention has the ability to identify the cover color of the music player interface displayed on the vehicle computer and the music rhythm. When the vehicle plays music, the first controller sends the cover color of the music player interface to the second controller, and the second controller combines the cover color and the change of the audio signal rhythm to calculate and control the ambient light to display the ambient light effect matching the current music rhythm type and cover color, thereby improving the flexibility of the ambient light control.
[0119] Embodiment 4, Figure 6 FIG. 1 is a schematic diagram showing a structure of an embodiment of a control device for a vehicle-mounted ambient light provided by the present invention. Figure 6 As shown, the device 600 is applied to a first controller, and includes: a judgment module 610 , a color extraction module 620 and a signal sending module 630 .
[0120] The judgment module 610 is used to receive a music playing request from a user and judge whether the atmosphere light meets the start condition of the music rhythm mode;
[0121] The color extraction module 620 is used for, if the ambient light meets the start-up condition of the music rhythm mode, and the music rhythm mode of the ambient light is the color following mode,
[0122] then extracting the main color of the cover image of the music player interface displayed on the target display in real time, and determining the corresponding color to be emitted from all the luminous colors of the atmosphere light according to the main color, and generating a first color signal according to the color to be emitted;
[0123] The signal sending module 630 is used to send the first color signal to the second controller, so that the second controller controls the color of the atmosphere light according to the color signal of the atmosphere light.
[0124] In an optional manner, extracting the main color of the cover image of the music player interface in the target display in real time includes:
[0125] Identifying the color of each pixel in the cover image;
[0126] According to a preset color classification rule, each of the pixels is classified, pixels of the same color are classified into the same color group, a plurality of color groups are obtained, and the color group with the largest number of pixels is determined as the main color group;
[0127] The number of pixels with the same color in the main color group is counted, and the color with the largest number of pixels in the main color group is used as the main color of the cover image.
[0128] In an optional manner, determining a corresponding color to be emitted from among all the emitting colors of the atmosphere light according to the main color includes:
[0129] Calculating the difference between the color coordinates of each luminous color of the ambient light and the color coordinates of the primary color respectively;
[0130] The luminescent color whose color coordinates have the smallest difference with the color coordinates of the primary color is selected as the corresponding color to be emitted.
[0131] In an optional manner, extracting the main color of the cover image of the music player interface displayed on the target display in real time also includes:
[0132] If the operation of extracting the main color of the cover image of the music player interface displayed on the target display fails, reading the main color of the historical cover image with the most recent recording time in the target storage space to generate a corresponding second color signal;
[0133] After each operation of extracting the main color of the cover image of the music player interface displayed on the target display, the extracted main color of the cover image is recorded in the target storage space as the main color of the historical cover image.
[0134] In an optional manner, the determining whether the ambient light meets the start-up condition of the music rhythm mode includes:
[0135] If the atmosphere light is not in a working state, determining that the atmosphere light meets the start-up condition of the music rhythm mode;
[0136] If the atmosphere light is in working state, the priority of the current working mode of the atmosphere light is compared with the priority of the music rhythm mode;
[0137] The priority of the working mode of the atmosphere light and the priority of the music rhythm mode are preset by the user;
[0138] If the priority of the music rhythm mode of the atmosphere light is higher than the priority of the current working mode, it is determined that the atmosphere light meets the start-up condition of the music rhythm mode.
[0139] In an optional manner, the device 600 further includes: a color confirmation module.
[0140] The color confirmation module is used to confirm that if the atmosphere light meets the start-up conditions of the music rhythm mode, and the music rhythm mode of the atmosphere light is not the color following mode,
[0141] Then, according to the color data of the ambient light set by the user or the default color data, corresponding color information is calculated; and the color information is converted into a third color signal;
[0142] The signal sending module 630 is further used to send the third color signal to the second controller, so that the second controller controls the color of the atmosphere light according to the third color signal.
[0143] Embodiment 5, Figure 7 FIG. 2 is a schematic diagram showing the structure of another embodiment of the vehicle-mounted atmosphere light control device provided by the present invention. Figure 7 As shown, the device 700 includes: an analysis module 710 , a processing module 720 and a control module 730 .
[0144] The analysis module 710 is used to receive the target color signal sent by the first controller, receive the audio analog signal from the target power amplifier in real time, perform frequency domain analysis on the audio analog signal played by the target power amplifier, and obtain amplitude data of frequency domain signals of several frequency bands;
[0145] Wherein, the target color signal is generated by the first controller using the vehicle ambient light control method of the above-mentioned example 1 or 2;
[0146] The processing module 720 is used to obtain the maximum amplitude of the frequency domain signal of each of the preset frequency bands, and to obtain the maximum value among the maximum amplitudes of the frequency domain signal of each of the preset frequency bands as reference data;
[0147] The control module 730 is used to control the brightness of the atmosphere light according to the reference data; and control the color of the atmosphere light according to the target color signal.
[0148] In an optional manner, an audio analog signal is received from a target power amplifier in real time, and a frequency domain analysis is performed on the audio analog signal played by the target power amplifier to obtain amplitude data of frequency domain signals of several preset frequency bands, including:
[0149] Receive audio analog signals of several preset frequency bands from a target power amplifier in real time;
[0150] The audio analog signals of the preset frequency bands are obtained by processing the target audio signal by the target power amplifier; the target audio signal is sent by the first controller;
[0151] The audio analog signals of several preset frequency bands are respectively subjected to frequency domain analysis to obtain frequency domain signals of several preset frequency bands and amplitude data of the frequency domain signals of several corresponding frequency bands.
[0152] In an optional manner, controlling the brightness of the atmosphere light according to the reference data includes:
[0153] Determining a brightness value corresponding to the atmosphere light according to the reference data;
[0154] There is a preset corresponding relationship between the reference data and the brightness value of the atmosphere light;
[0155] The brightness of the atmosphere light is controlled according to the brightness value corresponding to the atmosphere light.
[0156] Embodiment 6: According to one aspect of the embodiments of the present application, a smart cockpit controller is provided. Figure 8 A schematic diagram of the structure of an intelligent cockpit controller suitable for implementing an embodiment of the present application is shown.
[0157] It should be noted that Figure 8 The smart cockpit controller shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0158] like Figure 8 As shown, the intelligent cockpit controller may include: a processor 802 , a memory 806 , a bus 808 and a communication interface 804 . Exemplarily, the processor 801 , the memory 806 , and the communication interface 804 are interconnected via a bus 808 .
[0159] Wherein: the processor 802, the communication interface 804, and the memory 806 communicate with each other through the communication bus 808. The communication interface 804 is used to communicate with other devices such as a client or other server network elements. The processor 802 is used to execute the program 810, which can specifically execute the relevant steps in the control method embodiment of the vehicle-mounted atmosphere light provided in the above method embodiment 1 or 2.
[0160] Accordingly, an embodiment of the present application provides a computer-readable storage medium, in which computer-executable instructions are stored. When the computer-executable instructions are executed by a processor, they are used to implement the control method of the vehicle-mounted ambient light described in the above-mentioned embodiment 1 or 2.
[0161] The algorithms or displays provided herein are not inherently related to any particular computer, virtual system or other device. In addition, the embodiments of the present invention are not directed to any particular programming language.
[0162] Embodiment 7, according to one aspect of the embodiments of the present application, provides an atmosphere light controller, Fig. 9 A schematic diagram of the structure of an atmosphere light controller suitable for implementing the embodiment of the present application is shown.
[0163] It should be noted that Fig. 9 The ambient light controller shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0164] like Fig. 9 As shown, the intelligent cockpit controller may include: a processor 902 , a memory 906 , a bus 908 and a communication interface 904 . Exemplarily, the processor 901 , the memory 906 , and the communication interface 904 are interconnected via a bus 908 .
[0165] Wherein: the processor 902, the communication interface 904, and the memory 906 communicate with each other through the communication bus 908. The communication interface 904 is used to communicate with other devices such as a client or other server network elements. The processor 902 is used to execute the program 910, which can specifically execute the relevant steps in the embodiment of the control method of the vehicle atmosphere lamp provided in the above method embodiment 3.
[0166] Accordingly, an embodiment of the present application provides a computer-readable storage medium, in which computer-executable instructions are stored. When the computer-executable instructions are executed by a processor, they are used to implement the method described in the above embodiment 3.
[0167] The algorithms or displays provided herein are not inherently related to any particular computer, virtual system or other device. In addition, the embodiments of the present invention are not directed to any particular programming language.
[0168] Embodiment 8: According to one aspect of the embodiments of the present application, a vehicle is provided, and the vehicle includes a control device for a vehicle ambient light as provided in the above embodiments or a vehicle-mounted device as provided in the above embodiments.
[0169] like Fig.10 As shown, the vehicle-mounted equipment includes: a smart cockpit controller 1001, an ambient light controller 1002, a target display 1003, a target amplifier 1004, an ambient light 1005 and a target speaker 1006;
[0170] The smart cockpit controller 1001 is used to perform the operation of the vehicle atmosphere light control method provided in the above-mentioned embodiment 1 or 2;
[0171] The atmosphere light controller 1002 is used to perform the operation of the vehicle atmosphere light control method provided in the above-mentioned embodiment 3;
[0172] The target display 1003 is used to display the music player interface;
[0173] The target power amplifier 1004 is used to control the target speaker 1006 to play the audio analog signal, wherein the target speaker 1006 is connected to the target power amplifier 1004 .
[0174] In the description provided herein, a large number of specific details are described. However, it is understood that embodiments of the present invention can be practiced without these specific details. Similarly, in order to simplify the present invention and help understand one or more of the various inventive aspects, in the above description of exemplary embodiments of the present invention, the various features of the embodiments of the present invention are sometimes grouped together into a single embodiment, figure, or description thereof. Wherein, the claims that follow the specific embodiment are hereby expressly incorporated into the specific embodiment, wherein each claim itself is a separate embodiment of the present invention.
[0175] Those skilled in the art will appreciate that the modules in the devices in the embodiments may be adaptively changed and arranged in one or more devices different from the embodiments. The modules or units or components in the embodiments may be combined into one module or unit or component, and further may be divided into a plurality of submodules or subunits or subcomponents. Except that at least some of such features and / or processes or units are mutually exclusive.
[0176] It should be noted that the above embodiments illustrate the present invention rather than limit it, and that those skilled in the art may devise alternative embodiments without departing from the scope of the appended claims. In the claims, any reference symbol between brackets shall not be construed as a limitation on the claims. The word "comprising" does not exclude the presence of elements or steps not listed in the claims. The word "one" or "an" preceding an element does not exclude the presence of a plurality of such elements. The present invention may be implemented by means of hardware comprising a number of different elements and by means of a suitably programmed computer. In a unit claim enumerating a number of devices, several of these devices may be embodied by the same hardware item. The use of the words first, second, and third, etc. does not indicate any order. These words may be interpreted as names. The steps in the above embodiments, unless otherwise specified, should not be understood as limitations on the order of execution.
Claims
1. A method for controlling a vehicle ambient light, characterized in that: Applied to a first controller, the method comprises: Receive the user's music playback request and determine whether the ambient light meets the start-up conditions of the music rhythm mode; If the ambient light meets the activation condition of the music rhythm mode, and the music rhythm mode of the ambient light is the color following mode, then extracting the main color of the cover image of the music player interface displayed on the target display in real time, and determining the corresponding color to be emitted from all the luminous colors of the atmosphere light according to the main color, and generating a first color signal according to the color to be emitted; The first color signal is sent to a second controller, so that the second controller controls the color of the atmosphere light according to the color signal of the atmosphere light.
2. The method for controlling the vehicle ambient light according to claim 1, characterized in that: Extract the main color of the cover image of the music player interface in the target display in real time, including: Identifying the color of each pixel in the cover image; According to a preset color classification rule, each of the pixels is classified, pixels of the same color are classified into the same color group, a plurality of color groups are obtained, and the color group with the largest number of pixels is determined as the main color group; The number of pixels with the same color in the main color group is counted, and the color with the largest number of pixels in the main color group is used as the main color of the cover image.
3. The method for controlling the vehicle ambient light according to claim 1, characterized in that: Determining a corresponding color to be emitted from among all the emitting colors of the atmosphere light according to the main color includes: Calculating the difference between the color coordinates of each luminous color of the ambient light and the color coordinates of the primary color respectively; The luminescent color whose color coordinates have the smallest difference with the color coordinates of the primary color is selected as the corresponding color to be emitted.
4. The method for controlling the vehicle ambient light according to claim 1, characterized in that: Extracting the main color of the cover image of the music player interface displayed by the target display in real time, further comprising: If the operation of extracting the main color of the cover image of the music player interface displayed on the target display fails, reading the main color of the historical cover image with the most recent recording time in the target storage space to generate a corresponding second color signal; After each operation of extracting the main color of the cover image of the music player interface displayed on the target display, the extracted main color of the cover image is recorded in the target storage space as the main color of the historical cover image.
5. The method for controlling a vehicle ambient light according to any one of claims 1 to 4, characterized in that: The determining whether the atmosphere light meets the start-up conditions of the music rhythm mode includes: If the atmosphere light is not in a working state, determining that the atmosphere light meets the start-up condition of the music rhythm mode; If the atmosphere light is in working state, the priority of the current working mode of the atmosphere light is compared with the priority of the music rhythm mode; The priority of the working mode of the atmosphere light and the priority of the music rhythm mode are preset by the user; If the priority of the music rhythm mode of the atmosphere light is higher than the priority of the current working mode, it is determined that the atmosphere light meets the start-up condition of the music rhythm mode.
6. The method for controlling the vehicle ambient light according to claim 5, characterized in that: Also includes: If the ambient light meets the activation condition of the music rhythm mode, and the music rhythm mode of the ambient light is not the color following mode, Then, according to the color data of the ambient light set by the user or the default color data, corresponding color information is calculated; and the color information is converted into a third color signal; The third color signal is sent to the second controller, so that the second controller controls the color of the atmosphere light according to the third color signal.
7. A method for controlling a vehicle ambient light, characterized in that: Applied to the second controller, the method comprises: When receiving the target color signal sent by the first controller, receiving the audio analog signal from the target power amplifier in real time, performing frequency domain analysis on the audio analog signal played by the target power amplifier, and obtaining amplitude data of frequency domain signals of several frequency bands; Wherein, the target color signal is generated by the first controller using the vehicle ambient light control method according to any one of claims 1 to 6; Taking the maximum amplitude of the frequency domain signal of each of the preset frequency bands, and taking the maximum value among the maximum amplitudes of the frequency domain signal of each of the preset frequency bands as reference data; and controlling the brightness of the atmosphere lamp according to the reference data; The color of the atmosphere light is controlled according to the target color signal.
8. The method for controlling the vehicle ambient light according to claim 7, characterized in that: The audio analog signal from the target power amplifier is received in real time, and the frequency domain analysis is performed on the audio analog signal played by the target power amplifier to obtain the amplitude data of the frequency domain signal of several preset frequency bands, including: Receive audio analog signals of several preset frequency bands from a target power amplifier in real time; The audio analog signals of the preset frequency bands are obtained by processing the target audio signal by the target power amplifier; the target audio signal is sent by the first controller; The audio analog signals of several preset frequency bands are respectively subjected to frequency domain analysis to obtain frequency domain signals of several preset frequency bands and amplitude data of the frequency domain signals of several corresponding frequency bands.
9. The method for controlling a vehicle ambient light according to any one of claims 7 to 8, characterized in that: Controlling the brightness of the atmosphere light according to the reference data includes: Determining a brightness value corresponding to the atmosphere light according to the reference data; There is a preset corresponding relationship between the reference data and the brightness value of the atmosphere light; The brightness of the atmosphere light is controlled according to the brightness value corresponding to the atmosphere light.
10. A vehicle, characterized in that: include: A first controller, a second controller, a target display, a target amplifier, and an atmosphere light; The first controller is used to perform the operation of the vehicle ambient light control method according to any one of claims 1 to 6; The second controller is used to perform the operation of the vehicle ambient light control method according to any one of claims 7 to 9; The target display is used to display a music player interface; The target power amplifier is used to process the target audio signal to obtain audio analog signals of several preset frequency bands; the target audio signal is sent by the first controller.