Atmosphere lamp control method and device, electronic equipment and storage medium

The brightness and color of the ambient light are controlled through audio signals to achieve multi-level adjustment, which solves the problem of single brightness and color changes of the existing ambient light and improves the user experience.

CN118574289APending Publication Date: 2024-08-30GUANGZHOU AUTOMOBILE GROUP CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410815577.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-21
Publication Date
2024-08-30

AI Technical Summary

Technical Problem

The brightness rhythm changes and color rhythm changes of existing ambient lights are relatively simple, lack diversity, and cannot effectively improve the driver's riding experience.

Method used

By acquiring the audio signal in the vehicle and determining the color level classification and brightness slope control parameters of the ambient light according to the target control mode, multi-level brightness adjustment and rich color changes of the ambient light can be achieved.

Benefits of technology

It improves the brightness and color change diversity of the ambient light, enhances the user experience, and solves the problem of the ambient light having a single color or repeating the same color.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118574289A
    Figure CN118574289A
Patent Text Reader

Abstract

The invention provides an atmosphere lamp control method and device, electronic equipment and a storage medium, and the method comprises the steps: obtaining a played audio signal under the condition that a vehicle carries out audio playing, and obtaining a target control mode of an atmosphere lamp of the vehicle; determining a plurality of criteria corresponding to the atmosphere lamp in the target control mode, and determining color level classification of the atmosphere lamp according to the plurality of criteria; determining a brightness slope control parameter of the atmosphere lamp according to the audio signal, and determining a color rhythm control parameter of the atmosphere lamp according to the audio signal and the color hierarchical classification; and controlling the atmosphere lamp according to the brightness slope control parameter and the color rhythm control parameter. According to the method and the device, the problems of single-color rhythm, repeated rhythm of the same color during multi-color rhythm and single brightness rhythm of the atmosphere lamp can be solved, so that the brightness change of the atmosphere lamp is more variable, the color change is richer, the color rhythm and the brightness rhythm of the atmosphere lamp are more accurate, and the user experience is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of vehicle light control, and more specifically, to a method, device, electronic device and storage medium for controlling an ambient light. Background Art

[0002] With the development of automotive electronic technology, in addition to the original functional lighting, automotive lighting has increasingly focused on comfort and personalized lighting, such as ambient lighting. Ambient lighting is a decorative lighting fixture that can change its brightness and color according to the vehicle status, environment, and personal preferences, which can improve the riding experience of the occupants. When driving at night, ambient lighting can reduce visual fatigue and improve the driver's driving safety to a certain extent. At present, the brightness rhythm of ambient lighting is relatively simple, usually with a single-level brightness adjustment, and the color coverage of the color rhythm is low, creating a poor atmosphere. Therefore, how to improve the diversity of the brightness rhythm change and color rhythm change of ambient lighting has become an urgent problem to be solved. Summary of the invention

[0003] In view of this, the embodiments of the present application propose a method, device, electronic device and storage medium for controlling an ambient light to improve the above-mentioned problems.

[0004] According to the first aspect of an embodiment of the present application, a method for controlling an ambient light is provided, the method comprising: when a vehicle is playing audio, obtaining a played audio signal and obtaining a target control mode of the ambient light of the vehicle; determining a plurality of criteria corresponding to the ambient light under the target control mode, and determining a color level classification of the ambient light according to the plurality of criteria; determining a brightness slope control parameter of the ambient light according to the audio signal, and determining a color rhythm control parameter of the ambient light according to the audio signal and the color level classification; and controlling the ambient light according to the brightness slope control parameter and the color rhythm control parameter.

[0005] According to the second aspect of an embodiment of the present application, a device for controlling an ambient light is provided, the device comprising: an acquisition module, for acquiring an audio signal being played when audio is being played in a vehicle, and acquiring a target control mode of the ambient light of the vehicle; a color level classification determination module, for determining a plurality of criteria corresponding to the ambient light under the target control mode, and determining a color level classification of the ambient light according to the plurality of criteria; a control parameter determination module, for determining a brightness slope control parameter of the ambient light according to the audio signal, and determining a color rhythm control parameter of the ambient light according to the audio signal and the color level classification; a control module, for controlling the ambient light according to the brightness slope control parameter and the color rhythm control parameter.

[0006] According to a third aspect of an embodiment of the present application, an electronic device is provided, comprising: a processor; and a memory, wherein the memory stores computer-readable instructions, and when the computer-readable instructions are executed by the processor, the method for controlling the atmosphere light as described above is implemented.

[0007] According to a fourth aspect of an embodiment of the present application, a computer-readable storage medium is provided, on which computer-readable instructions are stored. When the computer-readable instructions are executed by a processor, the method for controlling the atmosphere light as described above is implemented.

[0008] In the scheme of the present application, when the vehicle is playing audio, the target control mode of the acquired ambient light is determined to determine multiple criteria, and the color level classification of the ambient light is accurately determined based on the multiple criteria, and then the brightness slope control parameters of the ambient light are determined based on the acquired audio signal played by the vehicle, and the color rhythm control parameters of the ambient light are determined based on the acquired audio signal played by the vehicle and the color level classification. Then, the brightness change control and color change control of the ambient light can be performed according to the color rhythm control parameters and brightness slope control parameters of the ambient light, so as to solve the problems of monochrome rhythm of the ambient light, repeated rhythm of the same color in multi-color rhythm, and single brightness rhythm of the ambient light, so that the brightness change of the ambient light is more varied, the color change is richer, the color rhythm and brightness rhythm of the ambient light are more accurate, and the user experience is improved.

[0009] It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0010] The drawings herein are incorporated into the specification and constitute a part of the specification, illustrate embodiments consistent with the present application, and together with the specification are used to explain the principles of the present application. Obviously, the drawings described below are only some embodiments of the present application, and for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0011] Figure 1 It is a schematic diagram of a scene according to an embodiment of the present application.

[0012] Figure 2 It is a flowchart of a method for controlling an atmosphere lamp according to an embodiment of the present application.

[0013] Figure 3 This is a control effect diagram of an atmosphere light that adds brightness slope control and classifies colors into corresponding levels according to an embodiment of the present application.

[0014] Figure 4This is a control effect diagram of an atmosphere light without adding brightness slope control and corresponding color hierarchical classification according to an embodiment of the present application.

[0015] Figure 5 It is a flowchart of a method for controlling an ambient light according to another embodiment of the present application.

[0016] Figure 6 It is a flowchart showing the specific steps of step 250 according to an embodiment of the present application.

[0017] Figure 7 It is a flowchart of a method for controlling an atmosphere lamp according to another embodiment of the present application.

[0018] Figure 8 It is a schematic diagram of a flow chart of determining a brightness slope control parameter and a color rhythm control parameter of an atmosphere light according to an embodiment of the present application.

[0019] Fig. 9 It is a flowchart of specific steps of step 370 according to an embodiment of the present application.

[0020] Fig.10 It is a flowchart of a method for controlling an atmosphere lamp according to another embodiment of the present application.

[0021] Fig.11 is a schematic diagram of a color coding table according to an embodiment of the present application.

[0022] Fig.12 It is a flowchart showing the specific steps of step 450 according to an embodiment of the present application.

[0023] Fig.13 It is a schematic diagram of a process for determining the color level classification of the atmosphere light according to an embodiment of the present application.

[0024] Fig.14 is a block diagram of a control device for an atmosphere light according to an embodiment of the present application.

[0025] Fig.15 It is a hardware structure diagram of an electronic device according to an embodiment of the present application.

[0026] The above-mentioned drawings have shown clear embodiments of the present invention, which will be described in more detail hereinafter. These drawings and textual descriptions are not intended to limit the scope of the present invention in any way, but to illustrate the concept of the present invention to computer technicians in this field through specific embodiments. DETAILED DESCRIPTION

[0027] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this application will be more comprehensive and complete and fully convey the concept of the example embodiments to those skilled in the art.

[0028] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0029] In addition, described feature, structure or characteristic can be combined in one or more embodiments in any suitable manner. In the following description, many specific details are provided to provide a full understanding of the embodiments of the present application. However, those skilled in the art will appreciate that the technical scheme of the present application can be put into practice without one or more of the specific details, or other methods, devices, steps, etc. can be adopted. In other cases, known methods, devices, realizations or operations are not shown or described in detail to avoid blurring the various aspects of the present application.

[0030] The block diagrams shown in the accompanying drawings are merely functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities may be implemented in software, or in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices. The flowcharts shown in the accompanying drawings are merely exemplary and do not necessarily include all the contents and operations / steps, nor do they necessarily have to be executed in the order described. For example, some operations / steps may be further decomposed, while some operations / steps may be combined or partially combined, so the actual execution order may change according to the actual situation.

[0031] Figure 1 is a schematic diagram of a scene according to an embodiment of the present application, such as Figure 1As shown, in the schematic diagram of this scenario, a vehicle S1 is included, and the vehicle S1 includes an entertainment information unit S11, an integrated body control unit S12 and an ambient light control unit S13, wherein the entertainment information unit S11 sends the audio signal / audio ambient light source signal and the setting signal corresponding to the color, brightness, working mode, etc. of the ambient light to the integrated body control unit S12, and the integrated body control unit S12 determines the brightness slope control parameters and color rhythm control parameters of the ambient light according to the received information, and sends the brightness slope control parameters and color rhythm control parameters of the ambient light to the ambient light control unit S13, so that the ambient light control unit S13 controls the ambient light to perform brightness rhythm and color rhythm according to the received brightness slope control parameters and color rhythm control parameters.

[0032] See also Figure 2 , Figure 2 The control method of the atmosphere lamp provided by an embodiment of the present application is shown. In a specific embodiment, the control method of the atmosphere lamp can be applied to Figure 7 The control device 600 of the ambient light and the electronic device 700 equipped with the control device 600 of the ambient light are shown. Figure 8 ). The specific process of this embodiment will be described below. Of course, it can be understood that the method can be executed by a cloud server with computing processing capabilities. Figure 2 The process shown is described in detail, and the control method of the atmosphere lamp may specifically include the following steps:

[0033] Step 110 , when the vehicle is playing audio, obtaining the played audio signal and obtaining the target control mode of the ambient light of the vehicle.

[0034] As a method, the ambient light can be an ambient light surrounding the vehicle cabin. In order to provide a better visual experience for the driver and passengers, the color and brightness of the ambient light can be adjusted according to the rhythm of the audio when the vehicle is playing audio. Optionally, a plurality of different control modes for the color and brightness of the ambient light can be pre-set, so that the user can select a preferred mode from a plurality of different control modes, and the vehicle control system can control the ambient light according to the target control mode.

[0035] Optionally, since the ambient light can be controlled by the rhythm of audio, when the user plays music or audio through the vehicle's entertainment system, the audio signal corresponding to the currently playing music or audio can be obtained from the cloud server.

[0036] Optionally, the user can select the target control mode of the vehicle's ambient light on the vehicle's large screen, or on an electronic device connected to the vehicle (for example, a smart phone, tablet computer, smart wearable device, etc.).

[0037] Step 120 , determining a plurality of criteria corresponding to the ambient light in the target control mode, and determining a color level classification of the ambient light according to the plurality of criteria.

[0038] As a method, different and corresponding multiple criteria can be set in advance for the control mode of the atmosphere light, and the multiple criteria corresponding to each control mode will have a certain influence on the color selection of the atmosphere light. Optionally, the multiple criteria corresponding to different modes can be understood as the degree of preference for different colors or different influencing factors on the selection of colors. For example, if the target control mode is the rhythmic mode, the criteria may include that the vehicle's atmosphere light can be mainly selected in cool colors; if the target control mode is the karaoke mode, then in order to create the atmosphere of karaoke in the car and create an atmosphere of passionate karaoke, the corresponding criteria may include the selection of passionate warm colors as the main color; if the target control mode is the party mode, then in order to create a comfortable atmosphere for the entire vehicle, the corresponding criteria may include fresh colors as the main color.

[0039] Optionally, after determining multiple criteria, a preset number of target colors can be selected from multiple colors according to the multiple criteria, so as to determine a corresponding color selection scheme based on the preset number of target colors. Optionally, since color selection schemes with different combinations of colors can be selected according to multiple criteria, multiple color selection schemes can be determined according to multiple criteria, and the consistency of the multiple color selection schemes can be verified, so as to determine the optimal scheme from the multiple color selection schemes, and determine the optimal scheme as the target color selection scheme, so as to determine the color level classification of the atmosphere light based on the target color selection scheme.

[0040] Optionally, multiple target colors in the color hierarchy classification of the ambient light are colors under different color systems, thereby ensuring that the color changes of the ambient light are color changes under different color systems, avoiding the repetitive rhythm of a single color or the same color when the color rhythm of the ambient light is changed, and improving the user experience.

[0041] Step 130: determining a brightness slope control parameter of the atmosphere light according to the audio signal, and determining a color rhythm control parameter of the atmosphere light according to the audio signal and the color level classification.

[0042] As a method, after obtaining the audio signal, the audio signal can be analyzed to determine the audio feature information corresponding to the audio signal, and then the audio feature information can be input into the fuzzy system. The fuzzy system performs fuzzification and fuzzy reasoning based on the input audio feature information to output fuzzy parameters, and then the brightness slope control parameters of the atmosphere light are determined according to the fuzzy parameters, and the color rhythm control parameters of the atmosphere light are determined according to the fuzzy parameters and the color level classification.

[0043] Optionally, the brightness slope refers to the rate of change of the light brightness over time. In the field of lighting, the brightness slope of the light is an important parameter that can affect people's visual perception and comfort. Therefore, the brightness change of the atmosphere light can be controlled by determining the brightness slope control parameter of the atmosphere light.

[0044] Optionally, the atmosphere light can change between different colors by changing the displayed color, and the parameters for controlling the color change are color rhythm control parameters, so that the color change of the atmosphere light can be controlled by the color rhythm parameters, thereby improving the user experience.

[0045] Step 140: Control the atmosphere light according to the brightness slope control parameter and the color rhythm control parameter.

[0046] As a method, after determining the brightness slope control parameters of the ambient light and the color rhythm parameters of the ambient light, the vehicle's lighting control system can be used to control the brightness and color changes of the ambient light according to the brightness slope parameters and the color rhythm parameters, so that the multi-color ambient light can select representative colors for color rhythm cycles, solving the problem of single-color rhythm and repeated rhythm of the same color in multi-color rhythm of the existing ambient light. At the same time, brightness slope control is added to achieve multi-level brightness adjustment. When the music rhythm is fast, the brightness slope is large and the brightness changes significantly. When the music frequency is flat, the gentle strategy of gradually brightening and fading the brightness can more realistically reflect the matching degree of the music rhythm and the light, so that the brightness can be adjusted in multiple levels. Figure 3 and Figure 4 As shown, Figure 3 To add brightness slope control and classify colors into different levels, Figure 4 This is the control effect diagram of the atmosphere light without adding brightness slope control and color classification. Figure 3 Compared to Figure 4 (The upper line segment is the curve corresponding to the color rhythm, and the lower line segment is the curve corresponding to the brightness rhythm) The brightness changes are more varied and smoother, and the color changes are richer, making the color rhythm and brightness rhythm of the atmosphere light more accurate, improving the user experience.

[0047] In an embodiment of the present application, when the vehicle is playing audio, the target control mode of the acquired ambient light is determined to determine multiple criteria, and the color level classification of the ambient light is accurately determined based on the multiple criteria, and then the brightness slope control parameters of the ambient light are determined based on the acquired audio signal played by the vehicle, and the color rhythm control parameters of the ambient light are determined based on the acquired audio signal played by the vehicle and the color level classification. Then, the brightness change control and color change control of the ambient light can be performed according to the color rhythm control parameters and brightness slope control parameters of the ambient light, so as to solve the problems of monochrome rhythm of the ambient light, repeated rhythm of the same color in multi-color rhythm, and single brightness rhythm of the ambient light, so that the brightness change of the ambient light is more varied, the color change is richer, the color rhythm and brightness rhythm of the ambient light are more accurate, and the user experience is improved.

[0048] See also Figure 5 , Figure 5 The control method of the atmosphere lamp provided by an embodiment of the present application is shown. Figure 5 The process shown is described in detail, and the control method of the atmosphere lamp may specifically include the following steps:

[0049] Step 210 , when the vehicle is playing audio, obtain the played audio signal and obtain the target control mode of the ambient light of the vehicle.

[0050] Step 220 , determining a plurality of criteria corresponding to the ambient light in the target control mode, and determining a color level classification of the ambient light according to the plurality of criteria.

[0051] Step 230: Analyze the audio signal to determine target audio feature information of the audio signal.

[0052] As a method, the target audio feature information corresponding to the audio signal can be obtained by performing fast Fourier transform analysis on the audio signal. Optionally, the target audio feature information may include information such as the frequency of the audio signal, the decibel of the audio signal, and the amplitude of the audio signal.

[0053] Step 240: Determine a brightness amplitude threshold and a brightness offset according to the target audio feature information, wherein the brightness amplitude threshold is positively correlated with the target audio feature information, and the brightness offset is negatively correlated with the target audio feature information.

[0054] As a method, a mapping relationship between audio feature information and a brightness amplitude threshold and a brightness bias can be preset, so that after determining the target audio feature information, the brightness amplitude threshold and the brightness bias are determined according to the target audio feature information and the mapping relationship. Optionally, the mapping relationship between the audio feature information and the brightness amplitude threshold and the brightness bias includes audio feature information of different ranges, positively correlated brightness amplitude thresholds corresponding to the audio feature information of different ranges, and negatively correlated brightness biases corresponding to the audio feature information of different ranges.

[0055] Optionally, after determining the target audio feature information, the target audio feature information can be reorganized to obtain a reorganized feature information value, and then the corresponding target audio feature range and the brightness amplitude threshold and brightness bias corresponding to the target audio feature range are determined in the mapping relationship according to the reorganized feature information value.

[0056] Optionally, after determining the target audio feature information, the feature information difference can be determined based on the target audio feature information corresponding to the previous moment and the current moment, and the corresponding target audio feature range and the brightness amplitude threshold and brightness bias corresponding to the target audio feature range can be determined in the mapping relationship based on the feature information difference.

[0057] Step 250: Determine the brightness slope control parameter according to the brightness amplitude threshold and the brightness offset.

[0058] As a method, the brightness slope control parameter corresponding to the ambient light can be determined by a primary slope control function. Optionally, the brightness slope control parameter can be determined by the formula Y=KX+B, where Y is the brightness slope control parameter, K is the brightness amplitude threshold, B is the brightness bias, and X is the brightness value of the ambient light. Optionally, the larger the brightness amplitude threshold value of the K value, the greater the slope of the brightness change and the greater the brightness value; the larger the value of the B value, the greater the amplitude.

[0059] As another way, when the target music feature information is amplitude, the greater the amplitude difference between the amplitude corresponding to the previous moment of the audio signal and the amplitude corresponding to the current moment, the greater the K value brightness amplitude threshold, the smaller the B value brightness bias, the more obvious the brightness change, and the ambient light flashing effect continues to improve; conversely, the smaller the amplitude difference between the amplitude corresponding to the previous moment of the audio signal and the amplitude corresponding to the current moment, the smaller the K value brightness amplitude threshold, the larger the B value brightness bias, the gentler the brightness change, and the ambient light brightness becomes softer. It can more realistically feedback the matching degree of music rhythm and lighting, so that the brightness can be adjusted in multiple levels.

[0060] Optionally, X may be a brightness rhythm input instruction value output by the fuzzy control system according to the input target audio feature information. Optionally, after the target audio feature information is determined, the target audio feature information may be input into the fuzzy control system, so that the fuzzy control system outputs a corresponding fuzzy value according to the input target audio feature information, and then defuzzifies the fuzzy value to obtain a corresponding brightness rhythm input instruction value.

[0061] In some embodiments, Figure 6 As shown, the step 250 includes:

[0062] Step 251: Acquire multiple preset audio feature ranges in the fuzzy rule library.

[0063] As a method, when constructing a fuzzy rule base corresponding to a fuzzy control system, multiple preset audio feature ranges can be set according to actual needs and stored in the fuzzy control system, so as to facilitate obtaining multiple preset audio feature ranges, wherein the multiple preset audio feature ranges can be multiple feature ranges corresponding to different types of audio features.

[0064] Step 252: Determine a target audio feature range that matches the target audio feature information from among the multiple preset audio feature ranges.

[0065] As a method, after obtaining multiple preset audio feature ranges, the target audio feature information can be matched with the multiple preset audio feature information respectively to determine the audio feature range to which the target audio feature information corresponds, and the audio feature range is determined as the target audio feature range.

[0066] Optionally, since the brightness of the atmosphere light can be adjusted according to changes in characteristic information of the audio, it is possible to determine the characteristic difference between the audio feature information corresponding to the previous moment and the audio feature information corresponding to the current moment, and then determine the audio feature range to which the characteristic difference belongs in multiple preset audio feature ranges, and determine the audio feature range as the target audio feature range.

[0067] Step 253: determine a corresponding brightness fuzzy parameter in the fuzzy parameters according to the target audio feature range, and determine the brightness slope control parameter according to the brightness fuzzy parameter, the brightness amplitude threshold and the brightness offset.

[0068] As a method, the audio characteristic information (such as frequency, decibel, amplitude, etc.) of the audio can be reorganized through the fuzzy control system, and a fuzzy logic system of audio rhythm can be established to fuzzify the audio characteristic information. In this way, fuzzy reasoning can be performed through the fuzzy rule base of the fuzzy control system to obtain the brightness fuzzy parameters, and the brightness rhythm input instruction value can be obtained by clarifying the brightness fuzzy parameters. Then, on this basis, the brightness slope control is added, and finally the brightness slope control parameters of the atmosphere light are determined to achieve multi-level brightness adjustment. When the audio rhythm is fast, the brightness slope is large and the brightness changes significantly. When the audio frequency is flat, the brightness slope is small, and the brightness gradually brightens or fades out. It can more realistically feedback the matching degree of the audio rhythm and the light, so that the brightness can be adjusted in multiple levels.

[0069] Please continue reading Figure 5 , step 260, determining the color rhythm control parameters of the atmosphere light according to the audio signal and the color level classification.

[0070] Step 270: Control the atmosphere light according to the brightness slope control parameter and the color rhythm control parameter.

[0071] The specific step descriptions of step 210 - step 220 and step 260 - step 270 may refer to step 110 - step 140 , which will not be repeated here.

[0072] In this embodiment, the target audio feature information is determined by analyzing the audio signal, and the brightness amplitude threshold and brightness bias are determined based on the target audio feature information. Then, the brightness slope control parameter of the atmosphere light can be determined according to the brightness amplitude threshold and the brightness bias, so that the brightness rhythm of the atmosphere light can be controlled according to the brightness slope control parameter, thereby realizing multi-level adjustment of the color of the atmosphere light.

[0073] See also Figure 7 , Figure 7 The control method of the atmosphere lamp provided by an embodiment of the present application is shown. Figure 7 The process shown is described in detail, and the control method of the atmosphere lamp may specifically include the following steps:

[0074] Step 310 , when the vehicle is playing audio, obtain the played audio signal and obtain the target control mode of the ambient light of the vehicle.

[0075] Step 320 , determining a plurality of criteria corresponding to the ambient light in the target control mode, and determining a color level classification of the ambient light according to the plurality of criteria.

[0076] Step 330: Determine a brightness slope control parameter of the ambient light according to the audio signal.

[0077] Step 340: Analyze the audio signal to determine target audio feature information of the audio signal, and determine a corresponding color blur parameter in the blur parameters according to the target audio feature information.

[0078] As a method, the target audio feature information corresponding to the audio signal can be obtained by performing fast Fourier transform analysis on the audio signal. Optionally, the target audio feature information may include information such as the frequency of the audio signal, the decibel of the audio signal, and the amplitude of the audio signal.

[0079] As a method, after determining the target audio feature information, the target audio feature information can be input into the fuzzy control system so that the fuzzy control system performs fuzzification according to the target audio feature information, and performs fuzzy reasoning through the fuzzy rule base in the fuzzy control system to obtain color fuzzy parameters.

[0080] Optionally, the input target audio features can be regarded as a three-dimensional matrix, and the output fuzzy parameters can be regarded as a two-dimensional matrix, and the two-dimensional matrix includes brightness fuzzy parameters and color fuzzy parameters. Optionally, when the fuzzy system outputs fuzzy parameters, the corresponding fuzzy parameters include two corresponding brightness rhythm indication labels and color rhythm indication labels, so that the corresponding color fuzzy parameters can be obtained according to the labels.

[0081] Step 350, determining the color rhythmic change of the atmosphere light according to the color fuzzy parameter and the color level classification, wherein the color rhythmic change indicates that the atmosphere light changes among a plurality of target colors in a target order.

[0082] As a method, after determining the color fuzzy parameters of the atmosphere light, the color fuzzy parameters can be defuzzified and clarified to obtain the color control instructions of the atmosphere light, and then the characteristic colors corresponding to the audio feature information corresponding to different moments in the audio signal are determined according to the color control instructions and the color hierarchy classification, and the target colors corresponding to the characteristic colors corresponding to the audio feature information corresponding to different moments in the audio signal are determined in the color hierarchy classification, and the determined target colors are sorted in chronological order to obtain the rhythmic color changes of the atmosphere light.

[0083] Step 360: Determine the color rhythm control parameter based on the color rhythm change.

[0084] As a method, after determining the color rhythmic change of the atmosphere light, the maintenance time of each target color and the change order between target colors of different colors can be determined according to the audio information, and then the color rhythmic control parameters of the atmosphere light can be determined according to the maintenance time of each target color, the change order between target colors of different colors and the color rhythmic change, so that the color change of the atmosphere light is consistent with the audio information.

[0085] Step 370: Control the atmosphere light according to the brightness slope control parameter and the color rhythm control parameter.

[0086] Among them, the specific step descriptions of steps 310 to 330 and step 370 can refer to steps 110 to 140, which will not be repeated here.

[0087] In this embodiment, the target audio feature information is determined by analyzing the audio signal, and the color fuzzy parameter is determined based on the target audio feature information. Then, the color rhythmic change of the atmosphere light can be determined according to the color fuzzy parameter and color level classification. Finally, the color rhythm control parameter is determined according to the color rhythmic change of the atmosphere light, so that the color rhythm of the atmosphere light is controlled according to the color rhythm control parameter, thereby ensuring the richness of the color rhythm of the atmosphere light.

[0088] Figure 8 FIG. 1 is a flow chart of determining the brightness slope control parameter and the color rhythm control parameter of the atmosphere light according to an embodiment of the present application. Figure 8As shown, the audio signal is subjected to fast Fourier transform analysis to obtain the target audio feature information of the audio information, which includes the audio amplitude, the audio frequency and the audio decibel. Then, a fuzzy logic system of audio rhythm is established according to the audio amplitude, the audio frequency and the audio decibel. Based on this, the fuzzy logic system outputs the color rhythm control parameters and the brightness slope control parameters according to the audio amplitude, the audio frequency and the audio decibel. Among them, the fuzzy logic system performs fuzzification according to the audio amplitude, the audio frequency and the audio decibel, and performs fuzzy reasoning according to the fuzzy rules in the fuzzy rule base to obtain the fuzzy parameters, and then clarifies the fuzzy parameters to obtain the color rhythm control parameters and the brightness slope control parameters. Among them, the fuzzy rule base constructs a fuzzy rule table based on a large amount of data analysis, and selects multiple language levels as the language levels of the fuzzy controller designed in this paper. Fuzzy rules refer to control rules that are summarized based on human intuitive thinking, experts or experienced personnel to eliminate system errors according to the errors of system output and the changing trends of errors. The basic form of the control rule is: IF x1 is A1 and x2 isA2 and…x2 is A2 THEN y is B, where Ai (i=1,2,…,n) is the input fuzzy language value of the fuzzy rule base; B is the output fuzzy language value of the fuzzy rule base. In the embodiment of the present application, Ai is the amplitude, frequency and decibel of the input audio. If the amplitude, frequency and decibel of the audio belong to a corresponding range in the fuzzy rule base, the fuzzy language value corresponding to the range is output, the fuzzy output language is clarified, and the color rhythm control parameters and brightness slope control parameters are obtained.

[0089] In some embodiments, after step 370, Fig. 9 As shown, the method also includes:

[0090] Step 371 , obtaining a first parameter and a second parameter corresponding to the target control mode, wherein the first parameter indicates a color switching speed of the atmosphere light, and the second parameter indicates a color switching period of the atmosphere light.

[0091] In some embodiments, in order to make the switching between different colors of the ambient light more sensitive, so that the color switching timing of the ambient light better matches the audio changes in the audio information, the first parameter and the second parameter in the target mode can be determined first, so that the maintenance time of the same color and the switching sensitivity between different colors can be determined based on the first parameter and the second parameter.

[0092] Optionally, the first parameter can be understood as an audio sensitivity limit threshold, which can be used to change the speed of switching between different colors by adjusting the first parameter when the target color corresponding to the previous moment is the same as the target color corresponding to the current moment. The higher the value of the first parameter, the lower the direct switching sensitivity of the corresponding different colors. The second parameter can be understood as an audio window sensitivity threshold, which can be used to change the cycle duration of the same color position by adjusting the coefficient when the target color corresponding to the previous moment is the same as the target color corresponding to the current moment, so as to control the switching speed of the atmosphere light. The higher the value, the lower the sensitivity.

[0093] Optionally, different control modes corresponding to the atmosphere light have different first parameters and second parameters. In the same mode, regardless of whether the color of the atmosphere light changes, the corresponding first parameter remains unchanged, but the lighting system can change the sensitivity of the color switching of the atmosphere light in the target control mode by adjusting the value of the first parameter.

[0094] Optionally, the second parameter of the ambient light in the target control mode can be an initial value, and the value of the second parameter can be adaptively adjusted in real time according to the audio information, so that the color switching cycle of the ambient light is more consistent with the audio information. For example, if the audio information indicates that the amplitude of the audio remains within the same amplitude range for a period of time, the second parameter can be reduced in real time, so that the maintenance time of the same color is increased, making the color change of the ambient light more accurate.

[0095] Step 372, determining a first color corresponding to the ambient light at the current moment and a second color corresponding to the previous moment, and determining a difference between the first color and the second color.

[0096] As a method, in order to determine the switching timing of the atmosphere light, the first color corresponding to the current moment and the second color corresponding to the previous moment can be determined. If the first color and the second color are the same color, the difference between the first color and the second color is determined to be 0; if the first color and the second color are different differences, the difference between the first color and the second color is determined to be 1.

[0097] Step 373: determine the color switching duration of the atmosphere light according to the first parameter, the second parameter and the difference, and control the atmosphere light according to the color switching duration.

[0098] As a way to make the color switching of the atmosphere light more accurate, the formula Y c =K a *X Δ +K i ∫X Δ To determine the color switching time, where Yc is the color switching time, K a is the first parameter, K i is the second parameter, X Δ is the difference between the first color and the second color, and is used to record the duration of color maintenance. Optionally, if the first color and the second color are the same color, the duration of the same color maintenance can be determined according to the above formula. If the first color and the second color are different colors, K in the above formula a *X Δ The part is 0, and the duration of the color can be recorded from the current moment.

[0099] Optionally, the color switching timing of the ambient light can be changed by adjusting the first parameter and the second parameter, which ensures both the short-cycle switching sensitivity and the long-cycle switching sensitivity of the audio, thereby realizing the control of the ambient light color switching. And by adjusting the first parameter and the second parameter, the problem of the ambient light color switching switching according to the amplitude of the audio can be solved. For example, when the audio is relatively smooth, the color switching of the ambient light is slow; when the audio is relatively aggressive, the color switching of the ambient light is too frequent. Optionally, the control algorithm of the ambient light can be installed in the actual vehicle, and the data analysis uses the RePlay function of CANoe. The data obtained on this basis can be analyzed for relevant characteristics to control the color switching of the ambient light.

[0100] In this embodiment, the color switching duration of the atmosphere light is determined according to the first parameter and the second parameter corresponding to the target control mode, and the difference between the second color of the atmosphere light at the previous moment and the first color corresponding to the current moment. The color switching is performed according to the color switching duration. The color switching timing of the atmosphere light is determined by the first parameter and the second parameter, which ensures both the short-cycle switching sensitivity and the long-cycle switching sensitivity of the audio, thereby realizing the control of the color switching of the atmosphere light.

[0101] See also Fig.10 , Fig.10 The control method of the atmosphere lamp provided by an embodiment of the present application is shown. Fig.10 The process shown is described in detail, and the control method of the atmosphere lamp may specifically include the following steps:

[0102] Step 410, when the vehicle is playing audio, obtain the played audio signal and obtain the target control mode of the ambient light of the vehicle.

[0103] Step 420 , determining a plurality of criteria corresponding to the ambient light in the target control mode, and obtaining the criterion weights corresponding to each of the plurality of criteria and the mode weight corresponding to the target control mode.

[0104] As a way, the corresponding preference settings are different in different control modes. Therefore, the multiple criteria corresponding to the atmosphere light in the target control mode can be determined according to the corresponding preference settings in the corresponding target mode. Optionally, the influencing factors of different criteria can be determined according to the preference settings, so as to construct the influencing factors into a target layer. Taking the audio rhythm target layer as an example, a criterion layer is constructed to obtain multiple criteria under the target control mode. For example, multiple criteria may include: criterion 1 that the music rhythm tends to be mainly cold colors; criterion 2 that warning colors rarely appear during music rhythm, such as bright red, red, etc.; criterion 3 that the same color is not selected repeatedly, etc. The specific criteria can be determined according to actual needs. Here, it is only used as an example without specific limitation.

[0105] Optionally, since each criterion has a certain influence on the selection of color, in order to determine the target color among multiple reference colors, the criterion weight corresponding to each criterion can be determined according to multiple criteria, and the criterion weight is used to determine the selection weight of the color selection.

[0106] Optionally, the mode weights corresponding to different control modes may be set in advance, so that after the target control mode of the ambient light is determined, the corresponding mode weight is determined according to the mode identifier of the target control mode.

[0107] Step 430: Determine the selection weights corresponding to the various colors of the ambient light according to the criterion weight and the mode weight.

[0108] As a method, after determining the criterion weight and the mode weight, the selection weight of the color corresponding to each criterion can be determined according to the criterion weight and the mode weight. Optionally, the selection weight can be obtained by multiplying the criterion weight and the mode weight. For example, if a criterion is to avoid the appearance of a warning color, the selection weight corresponding to red can be determined according to the accurate corresponding criterion weight and the mode weight.

[0109] Step 440 : determining a plurality of color change schemes according to the selection weights corresponding to the plurality of colors, wherein each of the plurality of color change schemes includes a plurality of reference colors, and the reference colors included in the plurality of color change schemes are not completely the same.

[0110] As a method, after determining the selection weights corresponding to the multiple colors, a preset number of colors can be selected from the multiple colors according to the size relationship between the selection weights, so as to determine the color change scheme according to the preset number of colors. Optionally, since the selection weights of the multiple colors are not completely the same, there are multiple corresponding selectable methods, and thus multiple color change schemes can be obtained.

[0111] Step 450 , obtaining color codes corresponding to the plurality of reference colors, and verifying the plurality of color change schemes according to the color codes corresponding to the plurality of reference colors to determine a target color change scheme.

[0112] As a method, in order to determine a target color transformation scheme among multiple color transformation schemes, consistency verification can be performed on multiple color transformation schemes, thereby determining the color transformation scheme that passes the verification as the target color transformation scheme. Optionally, in order to perform consistency verification, color codes corresponding to multiple reference colors can be obtained, thereby performing verification based on the color codes corresponding to the multiple reference colors.

[0113] Optionally, in order to avoid the color rhythm being unclear due to the ambient light switching between colors of the same color system, different colors in the same color change scheme can be verified by coding between different colors, so as to determine whether there are colors of the same color system in the same color change scheme, so as to determine the target color change scheme. Optionally, the color coding corresponding to each of the multiple reference colors can be a hexadecimal coding, such as Fig.11 As shown, different colors have their own corresponding color codes, and the codes of different colors in the same color system are completely different.

[0114] In some embodiments, Fig.12 As shown, step 450 includes:

[0115] Step 451: determine a scheme matrix according to the multiple color transformation schemes.

[0116] As a method, after determining multiple color conversion schemes, the number of columns of the scheme matrix can be determined according to the number of the multiple color conversion schemes, and the number of rows of the scheme matrix can be determined according to the number of colors in each color conversion scheme. Different colors of the same scheme are in the same column of the scheme matrix, and the number of colors in different color conversion schemes is the same. Optionally, the scheme matrix can be Among them, X 11 ~X T1 represents the option 1 selected by the criteria, and so on X 1N ~X TN Represents the solution N selected by the criteria.

[0117] Step 452: determine the positions of the multiple reference colors included in each color conversion scheme in the scheme matrix, and determine the difference between each two colors included in each color conversion scheme according to the positions and the color codes corresponding to the multiple reference colors.

[0118] As one approach, the position of each color in each transformation scheme in the scheme matrix can be determined first, and then the verification value corresponding to each color can be determined based on the position of each color in the scheme matrix and the color code corresponding to each color. Then, the verification values ​​corresponding to each color in the same color transformation scheme can be subtracted to obtain the difference between each two colors.

[0119] Optionally, if the color codes corresponding to the multiple reference colors are hexadecimal color codes, the hexadecimal color codes can be first converted to the RGB values ​​corresponding to the colors, so as to determine the corresponding verification values ​​based on the RGB values ​​of the colors and the positions of the colors in the solution matrix. For example, if the color code of the color is #ffffff, then the corresponding RGB values ​​are 255, 255, 255, and the position in the solution matrix is ​​X 11 , then it can be determined that the corresponding verification value is 255*3 / 3*1=255.

[0120] Optionally, the verification value corresponding to each color can also be determined by the color serial number corresponding to the color code and the position of each color in the scheme matrix. For example, if the color code of the color is #ffffff, it is in the color code table (such as Fig.11 The color number in the scheme matrix is ​​1, and the position in the scheme matrix is ​​X. 11 , then it can be determined that the corresponding verification value is 1*1=1.

[0121] Step 453 : Determine, from among the multiple color transformation schemes, a color transformation scheme whose difference values ​​are all greater than a difference threshold value as the target color transformation scheme.

[0122] As a way, in order to avoid the rhythm of colors in the same color system in the color rhythm of the ambient light, consistency verification can be performed based on the difference between each two colors in the determined color change scheme. When the difference is determined to be greater than the difference threshold, it can be determined that the corresponding two colors are between different color systems. If the difference between each two colors in a color change scheme is greater than the difference threshold, it can be determined that there are no colors in the same color system among all the colors in the color change scheme, so the color change scheme can be determined as the target color change scheme.

[0123] Please continue reading Fig.10 , step 460, determining the color hierarchy classification according to the target color codes corresponding to the multiple reference colors included in the target color transformation scheme.

[0124] As a method, after determining the target color transformation scheme, the result of color level classification of the atmosphere light can be determined according to the reference color in the target color transformation scheme and its corresponding target color code. Optionally, the result of color level classification can also be determined according to the sequence number of the reference color included in the target color transformation scheme in the color coding table and the target color transformation scheme, as shown in Table 1:

[0125] Table 1 Results of color hierarchy classification

[0126] White Light yellow Pink Purple 2 10 14 19 orange color Purple Sky blue Light Green 17 21 27 32

[0127] Step 470: Determine a brightness slope control parameter of the ambient light according to the audio signal, and determine a color rhythm control parameter of the ambient light according to the audio signal and the color level classification.

[0128] Step 480: Control the atmosphere light according to the brightness slope control parameter and the color rhythm control parameter.

[0129] The specific step descriptions of step 410 and step 470 - step 480 may refer to step 110 and step 130 - step 140 , which will not be repeated here.

[0130] In this embodiment, the selection weights of multiple colors are determined by the accurate weights corresponding to each of the multiple criteria and the mode weights corresponding to the target control mode of the atmosphere light, and then multiple color change schemes can be determined according to the selection weights, and then the multiple color change schemes can be verified according to the acquired color codes of the multiple colors to determine the target color change scheme, and finally the color level classification is determined according to the multiple reference colors included in the target color change scheme and the target color codes corresponding to the multiple reference colors, so as to determine the color rhythm control parameters based on the color level classification, so that the color rhythm control parameters are more accurate.

[0131] Fig.13 FIG. 1 is a flow chart of determining the color level classification of the atmosphere light according to an embodiment of the present application. Fig.13As shown, the color codes corresponding to the various colors and the target control modes corresponding to the atmosphere lights can be obtained first, and then the influencing factors on the color selection under the target control mode are determined, so as to construct a hierarchical model based on the influencing factors. In this hierarchical model, the influencing factors are constructed as a target layer, and then multiple criteria are determined based on the influencing factors. Different criteria have different influences on the selection of different colors, and a criterion layer is constructed based on multiple criteria. Finally, different schemes are determined based on different criteria, and a scheme layer is constructed based on different schemes. Furthermore, after the hierarchical model is constructed, multiple color change schemes are output, and then a scheme matrix is ​​built based on the multiple color change schemes. Then, the verification values ​​corresponding to the colors in each color change scheme in the scheme matrix are determined respectively, and consistency verification is performed through the verification value to obtain a verification result, and then the target color change scheme is output based on the verification result, and the scheme matrix can be adjusted based on the verification result.

[0132] Fig.14 is a block diagram of a control device for an atmosphere lamp according to an embodiment of the present application, such as Fig.14 As shown, the control device 500 of the atmosphere lamp includes: an acquisition module 510 , a color level classification determination module 520 , a control parameter determination module 530 and a control module 540 .

[0133] An acquisition module 510 is used to acquire the audio signal being played when the vehicle is playing audio, and to acquire the target control mode of the vehicle's ambient light; a color level classification determination module 520 is used to determine a plurality of criteria corresponding to the ambient light under the target control mode, and to determine the color level classification of the ambient light based on the plurality of criteria; a control parameter determination module 530 is used to determine the brightness slope control parameter of the ambient light based on the audio signal, and to determine the color rhythm control parameter of the ambient light based on the audio signal and the color level classification; a control module 540 is used to control the ambient light based on the brightness slope control parameter and the color rhythm control parameter.

[0134] In some embodiments, the control parameter determination module 530 includes: an audio analysis submodule, used to analyze the audio signal to determine the target audio feature information of the audio signal; a first determination submodule, used to determine a brightness amplitude threshold and a brightness bias based on the target audio feature information, wherein the brightness amplitude threshold is positively correlated with the target audio feature information, and the brightness bias is negatively correlated with the target audio feature information; a brightness slope control parameter determination submodule, used to determine the brightness slope control parameter based on the brightness amplitude threshold and the brightness bias.

[0135] In some embodiments, the brightness slope control parameter determination submodule includes: a preset audio feature range acquisition unit, used to acquire multiple preset audio feature ranges in a fuzzy rule library; a target audio feature range determination unit, used to determine a target audio feature range that matches the target audio feature information from the multiple preset audio feature ranges; a brightness slope control parameter determination unit, used to determine the corresponding brightness fuzzy parameter in the fuzzy parameter according to the target audio feature range, and determine the brightness slope control parameter according to the brightness fuzzy parameter, the brightness amplitude threshold and the brightness bias.

[0136] In some embodiments, the control parameter determination module 530 includes: a color fuzzy parameter determination submodule, which is used to analyze the audio signal to determine the target audio feature information of the audio signal, and determine the corresponding color fuzzy parameter in the fuzzy parameter according to the target audio feature information; a color rhythm change determination submodule, which is used to determine the color rhythmic change of the atmosphere light according to the color fuzzy parameter and the color hierarchy classification, wherein the color rhythmic change indicates that the atmosphere light changes between multiple target colors in a target order; a color rhythm control parameter determination submodule, which is used to determine the color rhythm control parameter based on the color rhythmic change.

[0137] In some embodiments, the control parameter determination module also includes: a parameter acquisition unit, used to acquire a first parameter and a second parameter corresponding to the target control mode, wherein the first parameter indicates the color switching speed of the atmosphere light, and the second parameter indicates the color switching period of the atmosphere light; a difference determination unit, used to determine the first color corresponding to the atmosphere light at the current moment and the second color corresponding to the previous moment, and determine the difference between the first color and the second color; a control unit, used to determine the color switching duration of the atmosphere light according to the first parameter, the second parameter and the difference, and control the atmosphere light according to the color switching duration.

[0138] In some embodiments, the color hierarchy classification determination module 520 includes: a weight acquisition submodule, used to acquire the criterion weights corresponding to each of the multiple criteria and the mode weights corresponding to the target control mode; a selection weight determination submodule, used to determine the selection weights corresponding to each of the multiple colors of the atmosphere light according to the criterion weights and the mode weights; a color change scheme determination submodule, used to determine multiple color change schemes according to the selection weights corresponding to each of the multiple colors, wherein each of the multiple color change schemes includes multiple reference colors, and the reference colors included in the multiple color change schemes are not exactly the same; a target color change scheme determination submodule, used to acquire the color codes corresponding to each of the multiple reference colors, and verify the multiple color change schemes according to the color codes corresponding to each of the multiple reference colors to determine the target color change scheme; a color hierarchy classification determination submodule, used to determine the color hierarchy classification according to the target color codes corresponding to each of the multiple reference colors included in the target color change scheme.

[0139] In some embodiments, the target color transformation scheme determination submodule includes: a scheme matrix determination subunit, used to determine a scheme matrix according to the multiple color transformation schemes; a difference determination subunit, used to determine the positions of the multiple reference colors included in each color transformation scheme in the scheme matrix, and determine the difference between each two colors included in each color transformation scheme according to the positions and the color codes corresponding to the multiple reference colors; a target color transformation scheme determination subunit, used to determine a color transformation scheme whose differences are all greater than a difference threshold among the multiple color transformation schemes as the target color transformation scheme.

[0140] According to one aspect of the embodiments of the present application, an electronic device is also provided, such as Fig.15 As shown, the vehicle 600 includes a processor 610 and one or more memories 620. The one or more memories 620 are used to store program instructions executed by the processor 610. When the processor 610 executes the program instructions, the above-mentioned ambient light control method is implemented.

[0141] Furthermore, the processor 610 may include one or more processing cores. The processor 610 runs or executes instructions, programs, code sets or instruction sets stored in the memory 620, and calls data stored in the memory 620. Optionally, the processor 610 may be implemented in at least one hardware form of digital signal processing (DSP), field-programmable gate array (FPGA), and programmable logic array (PLA). The processor 610 may integrate one or a combination of a central processing unit (CPU), a graphics processing unit (GPU), and a modem. Among them, the CPU mainly processes the operating system, user interface, and application programs; the GPU is responsible for rendering and drawing display content; and the modem is used to process wireless communications. It is understandable that the above-mentioned modem may not be integrated into the processor, but may be implemented separately through a communication chip.

[0142] According to one aspect of the present application, the present application further provides a computer-readable storage medium, which may be included in the electronic device described in the above embodiments; or may exist independently without being assembled into the electronic device. The above computer-readable storage medium carries computer-readable instructions, and when the computer-readable storage instructions are executed by a processor, the method in any of the above embodiments is implemented.

[0143] It should be noted that the computer-readable medium shown in the embodiment of the present application may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, - but not limited to - an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a flash memory, an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by an instruction execution system, device or device or used in combination with it. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, wherein a computer-readable program code is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate, or transmit programs for use by or in conjunction with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.

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

[0145] The flowchart and block diagram in the accompanying drawings illustrate the possible architecture, functions and operations of the system, method and computer program product according to various embodiments of the present application. Wherein, each box in the flowchart or block diagram can represent a module, a program segment, or a part of the code, and the above-mentioned module, program segment, or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flowchart, and the combination of boxes in the block diagram or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0146] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the embodiments disclosed herein. The present application is intended to cover any variations, uses or adaptations of the present application, which follow the general principles of the present application and include common knowledge or customary technical means in the art that are not disclosed in the present application.

[0147] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.

Claims

1. A method for controlling an atmosphere lamp, characterized in that: The method comprises: When the vehicle is playing audio, obtaining the played audio signal and obtaining the target control mode of the ambient light of the vehicle; Determining a plurality of criteria corresponding to the atmosphere light in the target control mode, and determining a color level classification of the atmosphere light according to the plurality of criteria; Determining a brightness slope control parameter of the atmosphere light according to the audio signal, and determining a color rhythm control parameter of the atmosphere light according to the audio signal and the color level classification; The atmosphere light is controlled according to the brightness slope control parameter and the color rhythm control parameter.

2. The method according to claim 1, characterized in that The step of determining the brightness slope control parameter of the atmosphere lamp according to the audio signal comprises: Analyze the audio signal to determine target audio feature information of the audio signal; Determining a brightness amplitude threshold and a brightness offset according to the target audio feature information, wherein the brightness amplitude threshold is positively correlated with the target audio feature information, and the brightness offset is negatively correlated with the target audio feature information; The brightness slope control parameter is determined according to the brightness amplitude threshold and the brightness offset.

3. The method according to claim 2, characterized in that The step of determining the brightness slope control parameter according to the brightness amplitude threshold and the brightness bias comprises: Acquire multiple preset audio feature ranges in the fuzzy rule library; Determining a target audio feature range that matches the target audio feature information from among the multiple preset audio feature ranges; A brightness fuzzy parameter corresponding to the fuzzy parameter is determined according to the target audio feature range, and the brightness slope control parameter is determined according to the brightness fuzzy parameter, the brightness amplitude threshold and the brightness offset.

4. The method according to claim 1, characterized in that: The step of determining the color rhythm control parameter of the atmosphere light according to the audio signal and the color level classification includes: Analyze the audio signal to determine target audio feature information of the audio signal, and determine a corresponding color fuzzy parameter in the fuzzy parameters according to the target audio feature information; Determining a color rhythmic change of the atmosphere light according to the color fuzzy parameter and the color level classification, wherein the color rhythmic change indicates that the atmosphere light changes among a plurality of target colors in a target order; The color rhythm control parameter is determined based on the color rhythm change.

5. The method according to claim 4, characterized in that After determining the color rhythm control parameter based on the color rhythm change and the serial numbers corresponding to the plurality of target colors, the method further includes: Acquire a first parameter and a second parameter corresponding to the target control mode, wherein the first parameter indicates a color switching speed of the atmosphere light, and the second parameter indicates a color switching period of the atmosphere light; Determine a first color corresponding to the ambient light at a current moment and a second color corresponding to a previous moment, and determine a difference between the first color and the second color; The color switching duration of the atmosphere light is determined according to the first parameter, the second parameter and the difference, and the atmosphere light is controlled according to the color switching duration.

6. The method according to claim 1, characterized in that Determining the color level classification of the atmosphere light according to the multiple criteria includes: Obtaining criterion weights corresponding to each of the plurality of criteria and a mode weight corresponding to the target control mode; Determining the selection weights corresponding to the multiple colors of the atmosphere light according to the criterion weight and the mode weight; Determining a plurality of color change schemes according to the selection weights corresponding to the plurality of colors, wherein each of the plurality of color change schemes includes a plurality of reference colors, and the reference colors included in the plurality of color change schemes are not completely the same; Acquire color codes corresponding to the plurality of reference colors, and verify the plurality of color change schemes according to the color codes corresponding to the plurality of reference colors to determine a target color change scheme; The color hierarchy classification is determined according to target color codes corresponding to each of a plurality of reference colors included in the target color transformation scheme.

7. The method according to claim 6, characterized in that The verifying the plurality of color change schemes according to the color codes corresponding to the plurality of reference colors to determine the target color change scheme includes: Determine a scheme matrix according to the plurality of color transformation schemes; Determine positions of a plurality of reference colors included in each color conversion scheme in the scheme matrix, and determine a difference between every two colors included in each color conversion scheme according to the positions and color codes corresponding to each of the plurality of reference colors; A color transformation scheme whose difference values ​​are all greater than a difference threshold is determined among the multiple color transformation schemes as the target color transformation scheme.

8. A control device for an atmosphere lamp, characterized in that: The device comprises: An acquisition module, used to acquire the played audio signal when the vehicle is playing audio, and to acquire the target control mode of the ambient light of the vehicle; A color level classification determination module, used to determine a plurality of criteria corresponding to the atmosphere light in the target control mode, and determine the color level classification of the atmosphere light according to the plurality of criteria; A control parameter determination module, used to determine a brightness slope control parameter of the atmosphere light according to the audio signal, and to determine a color rhythm control parameter of the atmosphere light according to the audio signal and the color level classification; A control module is used to control the atmosphere light according to the brightness slope control parameter and the color rhythm control parameter.

9. An electronic device, characterized in that: The electronic device comprises: processor; A memory having computer-readable instructions stored thereon, wherein when the computer-readable instructions are executed by the processor, the method according to any one of claims 1 to 7 is implemented.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores program codes, which can be called by a processor to execute the method according to any one of claims 1 to 7.

Citation Information

Cited By

  • Design method of visual piano key rhythm lamp

    CN120224527A