Atmosphere lamp display mode generation method and device, electronic equipment and computer storage medium
By collecting and integrated music fragments, the atmosphere light display mode is generated according to the height and duration of the note, and the problem of manual adjustment of the light and breathing frequency of the atmosphere light in the existing technologies requires intelligent display mode generation.
Patent Information
- Application Number
- CN202411761192.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-02
- Publication Date
- 2025-01-24
- Estimated Expiration
- 2044-12-02
AI Technical Summary
The display mode of existing ambient lights requires users to manually adjust the brightness, brightness and breathing frequency, and there is a lack of intelligent generation methods.
By collecting multiple music fragments, integrating into target music, and determining the breathing frequency and brightness of the atmosphere light according to the height of the note and duration, to generate the adaptive atmosphere light display mode.
Intelligent ambient light display mode generation is realized, which improves the flexibility and user experience of mode generation and avoids the cumbersome process of manual adjustment.
Smart Images

Figure CN119348541A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of computer technology, and in particular to a method, device, electronic device and computer storage medium for generating an atmosphere light display mode. Background Art
[0002] With the development of in-vehicle technology, more and more cars are equipped with ambient lights to provide a sense of technology. At the same time, ambient lights can also facilitate night-time use of the car.
[0003] However, most of the display modes of the ambient light are pre-set for the vehicle. When the display mode of the ambient light needs to be adjusted, the user needs to manually adjust the brightness, intensity and breathing frequency of the ambient light to generate a customized display mode of the ambient light. Summary of the invention
[0004] In view of this, embodiments of the present application provide a method, device, electronic device and computer storage medium for generating an atmosphere light display mode, so as to at least partially solve the above-mentioned problems.
[0005] According to a first aspect of an embodiment of the present application, a method for generating an ambient light display mode is provided, the method comprising:
[0006] Collect multiple music clips;
[0007] integrating the plurality of music clips into target music;
[0008] Determining the number of first notes in the target music according to the pitches of the notes in the target music, wherein the pitches of the first notes are less than a first pitch threshold;
[0009] determining the breathing frequency of the atmosphere light according to the number of the first notes;
[0010] Determine the brightness of the atmosphere light according to the corresponding relationship between the pitch of the note and the brightness of the atmosphere light; and determine the duration of the brightness of the atmosphere light according to the corresponding relationship between the duration of the note and the duration of the brightness of the atmosphere light;
[0011] The ambient light display mode is generated according to the breathing frequency, the brightness and the duration.
[0012] In some embodiments, collecting a plurality of music clips includes:
[0013] Get the current time;
[0014] According to the current time, determining whether there is a first preset time range corresponding to the current time in a plurality of preset time ranges;
[0015] If so, the plurality of music clips are collected.
[0016] In some embodiments, if the plurality of music clips exist, collecting the plurality of music clips comprises:
[0017] Determining at least one of the music style tags according to the correspondence between the first preset time range and the music style tags;
[0018] The plurality of music clips corresponding to at least one of the music style tags are collected.
[0019] In some embodiments, integrating the multiple music clips into a target music includes:
[0020] Determining music style tags of the multiple music clips;
[0021] Generate a first music with the same music style tag as the plurality of music clips;
[0022] The first music is determined as the target music, so as to integrate the multiple music clips into the target music.
[0023] Determining the brightness of the atmosphere light according to the correspondence between the pitch of the note and the brightness of the atmosphere light includes:
[0024] According to the pitch of the note, determining a first pitch range corresponding to the note from a plurality of pitch ranges;
[0025] The brightness of the atmosphere light is determined according to the corresponding relationship between the first pitch range and the brightness of the atmosphere light.
[0026] In some embodiments, the method further comprises:
[0027] Collecting user’s facial expression data;
[0028] determining a user's mood based on the facial expression data;
[0029] According to the corresponding relationship between the user's mood and the first adjustment coefficient, the duration is adjusted to determine a first duration;
[0030] The step of generating the atmosphere light display mode according to the breathing frequency, the brightness and the duration includes:
[0031] The ambient light display mode is generated according to the breathing frequency, the brightness and the first duration.
[0032] In some embodiments, the method further comprises:
[0033] Get the weather data for the current time;
[0034] determining weather based on the weather data;
[0035] According to the corresponding relationship between the weather and the second adjustment coefficient, the duration is adjusted to determine a second duration;
[0036] The step of generating the atmosphere light display mode according to the breathing frequency, the brightness and the duration includes:
[0037] The ambient light display mode is generated according to the breathing frequency, the brightness and the second duration.
[0038] According to a second aspect of an embodiment of the present application, there is provided an atmosphere light display mode generating device, the device comprising:
[0039] A collection module, used for collecting multiple music clips;
[0040] An integration module, used for integrating the multiple music clips into target music;
[0041] A first determination module, configured to determine the number of first notes in the target music according to the pitches of the notes in the target music, wherein the pitches of the first notes are less than a first pitch threshold;
[0042] a second determining module, configured to determine a breathing frequency of the atmosphere lamp according to the number of the first notes;
[0043] A third determination module is used to determine the brightness of the atmosphere light according to the corresponding relationship between the pitch of the note and the brightness of the atmosphere light; and to determine the duration of the brightness of the atmosphere light according to the corresponding relationship between the duration of the note and the duration of the brightness of the atmosphere light;
[0044] A generating module is used to generate the atmosphere light display mode according to the breathing frequency, the brightness and the duration.
[0045] According to the third aspect of an embodiment of the present application, there is provided an electronic device, comprising: a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other through the communication bus; the memory is used to store at least one executable instruction, and the executable instruction enables the processor to perform operations corresponding to the method for generating an atmosphere light display mode as described in the first aspect.
[0046] According to a fourth aspect of an embodiment of the present application, a computer storage medium is provided, on which a computer program is stored. When the program is executed by a processor, the method for generating an atmosphere light display mode as described in the first aspect is implemented.
[0047] According to the method for generating the display mode of the atmosphere light in the embodiment of the present application, firstly, multiple music clips are collected, and then the multiple music clips are further integrated into the target music, and then the breathing frequency of the atmosphere light is further determined by the number of the first notes of the target music, and the brightness of the atmosphere light and the duration of the brightness of the atmosphere light are determined by the pitch and duration of the notes, so as to generate the display mode of the atmosphere light by using the breathing frequency, brightness and duration. The embodiment of the present application can intelligently generate the display mode of the atmosphere light according to multiple music clips, improve the flexibility of the generation of the display mode of the atmosphere light, and avoid the problem of manually adjusting the brightness, brightness and breathing frequency of the atmosphere light in the prior art. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the embodiments of the present application. For ordinary technicians in this field, other drawings can also be obtained based on these drawings.
[0049] Figure 1 is a flowchart of a method for generating an atmosphere light display mode according to an embodiment of the present application;
[0050] Figure 2 is a flowchart of a method for generating an ambient light display mode according to another embodiment of the present application;
[0051] Figure 3 is a structural block diagram of an atmosphere light display mode generating device according to an embodiment of the present application;
[0052] Figure 4 It is a schematic diagram of the structure of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION
[0053] In order to enable those skilled in the art to better understand the technical solutions in the embodiments of the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the embodiments of the present application should fall within the scope of protection of the embodiments of the present application.
[0054] The specific implementation of the embodiment of the present application is further explained below in conjunction with the accompanying drawings of the embodiment of the present application.
[0055] The embodiment of the present application provides a method for generating an atmosphere light display mode, which is applied to a mobile device equipped with an atmosphere light. For example, the mobile device may be a car. The embodiment of the present application takes a car as an example to illustrate the method for generating an atmosphere light display mode. The specific steps of the method for generating an atmosphere light display mode are as follows: Figure 1 As shown, including:
[0056] S101, collecting multiple music clips.
[0057] In the embodiment of the present application, an electronic control unit (ECU) collects multiple music clips. Specifically, when collecting multiple music clips, the electronic control unit can collect multiple music clips from the music recently played by the user (driver) or from the rankings of the music platform.
[0058] In an example, the collection time of a music clip may be 30 seconds, and the collection time of each music clip may be the same or different. Those skilled in the art may set the collection time of the music clip according to actual needs, or determine the total collection time according to actual needs.
[0059] S102, integrating multiple music clips into target music.
[0060] In the embodiment of the present application, after collecting multiple music clips, the electronic control unit integrates the multiple music clips into a piece of music to obtain the target music.
[0061] In one example, if the multiple music clips include music clip A, music clip B and music clip C, the electronic control unit integrates music clip A, music clip B and music clip C into target music, which includes music clip A, music clip B and music clip C.
[0062] S103, determining the number of first notes in the target music according to the pitch of each note in the target music.
[0063] In the embodiment of the present application, after obtaining the target music, the electronic control unit determines the pitch of each note in the target music, and compares the pitch of the note in the target music with the first pitch threshold, thereby determining the number of first notes in the target music. Specifically, the pitch of the first note is less than the first pitch threshold.
[0064] In one example, the notes of the embodiment of the present application can be represented according to the frequency of the notes, and the first pitch threshold can also be represented according to the frequency of the notes. For example, the first pitch threshold can be represented as 262 Hz.
[0065] S104: Determine the breathing frequency of the atmosphere light according to the number of the first notes.
[0066] In an embodiment of the present application, after obtaining the number of first notes in the target music, the electronic control unit sets the breathing frequency in the ambient light display mode to the number of the first notes to determine the breathing frequency of the ambient light in the ambient light display mode.
[0067] S105, determining the brightness of the ambient light according to the corresponding relationship between the pitch of the note and the brightness of the ambient light; and determining the duration of the brightness of the ambient light according to the corresponding relationship between the duration of the note and the duration of the brightness of the ambient light.
[0068] In an embodiment of the present application, after determining the number of the first note, the electronic control unit obtains the pitch of the note in the target music, and then determines the brightness of the atmosphere light using the correspondence between the pitch of the note and the brightness of the atmosphere light. Furthermore, the electronic control unit obtains the duration of the note in the target music, and determines the duration of the brightness of the atmosphere light based on the duration of the note.
[0069] In one example, the pitch of a musical note can also be represented by frequency.
[0070] S106, generating an ambient light display mode according to the breathing frequency, brightness and duration.
[0071] In the embodiment of the present application, after obtaining the breathing frequency, brightness and duration of the brightness of the atmosphere light, the electronic control unit generates an atmosphere light display mode according to the breathing frequency, brightness and duration.
[0072] The method for generating the display mode of the atmosphere light in the embodiment of the present application first collects multiple music clips, further integrates the multiple music clips into target music, and further determines the breathing frequency of the atmosphere light by the number of the first notes of the target music, and determines the brightness of the atmosphere light and the duration of the brightness of the atmosphere light by the pitch and duration of the notes, so as to generate the display mode of the atmosphere light by using the breathing frequency, brightness and duration. The embodiment of the present application can intelligently generate the display mode of the atmosphere light according to multiple music clips, improves the flexibility of the generation of the display mode of the atmosphere light, and avoids the problem of manually adjusting the brightness, brightness and breathing frequency of the atmosphere light in the prior art.
[0073] Furthermore, in the embodiment of the present application, collecting multiple music clips may include the following steps:
[0074] S1011, obtain the current time.
[0075] In the embodiment of the present application, the electronic control unit first obtains the current time before collecting multiple music clips.
[0076] S1012: Determine, according to the current time, whether there is a first preset time range corresponding to the current time among multiple preset time ranges.
[0077] In the embodiment of the present application, after obtaining the current time, the electronic control unit compares the current time with multiple preset time ranges, and determines whether there is a first preset time range corresponding to the current time among the multiple preset time ranges.
[0078] In one example, multiple preset time ranges in the embodiment of the present application are used to represent special days such as holidays, birthdays or anniversaries. The user (driver) can pre-set dates such as birthdays and anniversaries. The electronic control unit can obtain the date of the holiday on the Internet. After obtaining the date of the special day, the electronic control unit stores the date and obtains multiple preset time ranges. Furthermore, the electronic control unit can compare the obtained current date with the multiple preset time ranges to determine whether there is a first preset time range corresponding to the current time in the multiple preset time ranges.
[0079] S1013: If so, collect multiple music clips.
[0080] In the embodiment of the present application, if the electronic control unit determines that there is a first preset time range, the step of collecting multiple music clips is executed. That is, the electronic control unit only executes the step of collecting multiple music clips when the electronic control unit determines that the current time belongs to a special day.
[0081] In one example, when collecting multiple music clips, the electronic control unit determines the first preset time range and determines at least one music style label according to the correspondence between the first preset time range and the music style label. Specifically, when the first preset time range is a birthday, at least one music style label can be determined according to the correspondence between the birthday and the music style label. For example, when the first preset time range is a birthday, the determined music style label can be cheerful, sweet, popular, etc.
[0082] Further, after the electronic control unit determines at least one music style tag, it collects multiple music clips, wherein each music clip includes at least one of all the music style tags. Specifically, when the music style tags are cheerful, sweet, and popular, the music style tags corresponding to the music clip may include cheerful, sweet, or popular, cheerful, sweet, cheerful, popular, sweet, popular, cheerful, sweet, and popular.
[0083] The embodiment of the present application can accurately determine whether there is a first preset time range corresponding to the current time in multiple preset time ranges by determining the current time, and then collect multiple music clips when the first preset time range exists, and then generate an atmosphere light display mode corresponding to the current time, thereby further improving the flexibility of generating atmosphere light display modes.
[0084] Furthermore, in the embodiment of the present application, integrating multiple music clips into target music may include the following steps:
[0085] S1021, determining music style tags of multiple music clips.
[0086] In the embodiment of the present application, the electronic control unit determines the music style tags of the multiple music clips after collecting the multiple music clips. Specifically, the music style tags of the multiple music clips may include cheerful, sweet, sad, rock, pop, etc.
[0087] S1022: Generate a first music with the same music style tag as the multiple music clips.
[0088] In the embodiment of the present application, after determining the music style tags of the plurality of music clips, the electronic control unit generates a first music with the same music style tag.
[0089] Specifically, the electronic control unit may generate the first music using a pre-trained generator to ensure that the music style label of the first music is the same as the music style labels of the plurality of music clips.
[0090] In one embodiment, the generator can be trained by a discriminator, which can accurately distinguish whether the first music output by the generator is sample data or output data, and then determine whether the output data of the generator meets actual needs. After the error between the output data of the generator and the sample data is less than a preset value, it is determined that the training of the generator is completed.
[0091] S1023, determining the first music as the target music.
[0092] In the embodiment of the present application, after generating the first music, the electronic control unit determines the first music as the target music, and then completes the integration of multiple music clips.
[0093] The embodiment of the present application determines the music style tags of multiple music clips, and then generates a first music with the same music style tag, and determines the first music as the target music, so that the target music can be used to generate an atmosphere light display mode corresponding to the current time, further improving the flexibility of generating the atmosphere light display mode.
[0094] Furthermore, according to the embodiment of the present application, determining the brightness of the atmosphere light according to the correspondence between the pitch of the note and the brightness of the atmosphere light may include the following steps:
[0095] S1051: According to the pitch of the note, determine a first pitch range corresponding to the note from a plurality of pitch ranges.
[0096] In the embodiment of the present application, the electronic control unit determines a first pitch range corresponding to the note from among a plurality of pitch ranges according to the pitch of the note. Specifically, the pitch of the note can be represented by the frequency of the note.
[0097] S1052: Determine the brightness of the ambient light according to the correspondence between the first pitch range and the brightness of the ambient light.
[0098] In the embodiment of the present application, after the electronic control unit determines the first pitch range corresponding to the note, it determines the brightness of the atmosphere light according to the corresponding relationship between the first pitch range and the brightness of the atmosphere light. Specifically, the corresponding relationship between the pitch range and the brightness of the atmosphere light can be shown in Table 1:
[0099] Table 1
[0100] pitch frequency brightness pitch frequency brightness pitch frequency brightness Bass 1 82-262 0-22 Alto 1 495-523 99 Treble 1 989-1036 177 Bass 2 263-296 33 Alto 2 534-589 110 Treble 2 1027-1175 188 Bass 3 297-330 44 Alto 3 590-661 122 Treble 3 1176-1298 199 Bass 4 331-362 55 Alto 4 662-739 133 Treble 4 1299-1367 211 Bass 5 363-394 66 Alto 5 740-799 144 Treble 5 1368-1530 222 Bass 6 395-439 77 Alto 6 800-860 155 Treble 6 1531-1760 233 Bass 7 440-494 88 Alto 7 861-988 166 Treble 7 1761-1976 244-255
[0101] The brightness of the first note is 30% of the normal brightness.
[0102] The embodiment of the present application can accurately determine the brightness of the atmosphere light through the musical notes, so as to accurately generate the display mode of the atmosphere light according to the brightness of the atmosphere light, so as to generate the atmosphere light display mode corresponding to the current time, further improving the flexibility of generating the atmosphere light display mode.
[0103] Furthermore, the method for generating an ambient light display mode in the embodiment of the present application may further include the following steps:
[0104] S107, collecting the user's facial expression data.
[0105] In the embodiment of the present application, the electronic control unit can also collect the user's facial expression data. Specifically, the electronic control unit can collect the user's (driver's) facial expression data through a camera.
[0106] S108, determining the user's mood according to the facial expression data.
[0107] In the embodiment of the present application, the electronic control unit can obtain the corners of the driver's mouth and the position of the eyebrows according to a pre-stored image recognition algorithm, and match them with the facial expression features corresponding to the typical mood to determine the mood of the user (driver).
[0108] S109: Adjust the duration according to the corresponding relationship between the user's mood and the first adjustment coefficient to determine the first duration.
[0109] In the embodiment of the present application, after determining the user's mood, the electronic control unit determines the first adjustment coefficient according to the corresponding relationship between the user's mood and the first adjustment coefficient, so as to adjust the duration of the brightness of the atmosphere light using the first adjustment coefficient to obtain the first duration. Specifically, the first adjustment coefficient can be 3%. When it is determined that the user's mood is sad, the duration can be increased by 3%, and when it is determined that the user's mood is sad, the duration can be reduced by 3%.
[0110] Furthermore, the electronic control unit may generate an ambient light display mode according to the breathing frequency, brightness and the first duration.
[0111] The embodiment of the present application can adaptively adjust the atmosphere light display mode by determining the mood of the user, so that the generated atmosphere light display mode is more in line with the mood of the user, and further provides flexibility of the atmosphere light display mode.
[0112] Furthermore, the method for generating an ambient light display mode in the embodiment of the present application may further include the following steps:
[0113] S110, obtaining weather data at the current time.
[0114] In the embodiment of the present application, the electronic control unit can also obtain weather data at the current time. Specifically, the electronic control unit can directly obtain weather data at the current time on the network, or can obtain weather data at the current time by taking a photo of the environment outside the vehicle and determining light data.
[0115] S111, determining the weather according to the weather data.
[0116] In an embodiment of the present application, the electronic control unit determines the current weather based on the acquired weather data.
[0117] S112: Adjust the duration according to the corresponding relationship between the weather and the second adjustment coefficient to determine a second duration.
[0118] In the embodiment of the present application, after determining the weather, the electronic control unit determines the second adjustment coefficient according to the corresponding relationship between the weather and the second adjustment coefficient, so as to adjust the duration of the brightness of the atmosphere light using the second adjustment coefficient to obtain the second duration. Specifically, the second adjustment coefficient can be 3%. When it is determined that the weather is cloudy, the duration can be increased by 3%, and when it is determined that the weather is sunny, the duration can be reduced by 3%.
[0119] Furthermore, the electronic control unit may generate an ambient light display mode according to the breathing frequency, brightness and the second duration.
[0120] The embodiment of the present application can adaptively adjust the atmosphere light display mode by determining the weather, so that the generated atmosphere light display mode can be more in line with the user's mood, further providing flexibility of the atmosphere light display mode.
[0121] Furthermore, the embodiments of the present application can adjust the duration according to both the user's mood and the weather, or can adjust the duration using the mood alone, or can adjust the duration using the weather alone.
[0122] Furthermore, the embodiment of the present application provides another method for generating an atmosphere light display mode, the specific steps are as follows: Figure 2 As shown, including:
[0123] Get the current time, compare the current time with multiple preset time ranges, determine whether there is a first preset time range corresponding to the current time in the multiple preset time ranges, if so, determine the first preset time range based on the correspondence between the first preset time range and the music style label, determine at least one music style label, and collect multiple music clips based on the at least one music style label.
[0124] After collecting multiple music clips, determine the music style tags of the multiple music clips, generate a first music with the same music style tag as the multiple music clips, and determine the first music as the target music. Further, determine the pitch of each note in the target music, and compare the pitch of the note in the target music with the first pitch threshold, and then determine the number of first notes in the target music, and set the breathing frequency in the ambient light display mode to the number of first notes. According to the pitch of the note, determine the first pitch range corresponding to the note in multiple pitch ranges, determine the brightness of the ambient light according to the corresponding relationship between the first pitch range and the brightness of the ambient light, and determine the duration of the brightness of the ambient light according to the duration of the note in the target music.
[0125] Furthermore, the user's facial expression data is collected to determine the user's mood, and the first adjustment coefficient is determined based on the correspondence between the user's mood and the first adjustment coefficient, so as to adjust the duration of the ambient light brightness using the first adjustment coefficient to obtain a first duration, and the current weather is determined based on the acquired weather data, and the second adjustment coefficient is determined based on the correspondence between the weather and the second adjustment coefficient, so as to adjust the first duration using the second adjustment coefficient to obtain a second duration, and further, the ambient light display mode is generated based on the breathing frequency, brightness and the second duration.
[0126] Furthermore, the embodiment of the present application provides an atmosphere light display mode generating device, the specific device is as follows Figure 3 As shown, the device comprises:
[0127] A collection module 301 is used to collect multiple music clips;
[0128] An integration module 302, for integrating multiple music clips into target music;
[0129] A first determination module 303, configured to determine the number of first notes in the target music according to the pitches of the notes in the target music, wherein the pitch of the first note is less than a first pitch threshold;
[0130] A second determination module 304 is used to determine the breathing frequency of the atmosphere light according to the number of the first notes;
[0131] The third determination module 305 is used to determine the brightness of the atmosphere light according to the corresponding relationship between the pitch of the note and the brightness of the atmosphere light; and to determine the duration of the brightness of the atmosphere light according to the corresponding relationship between the duration of the note and the duration of the brightness of the atmosphere light;
[0132] The generating module 306 is used to generate an ambient light display mode according to the breathing frequency, brightness and duration.
[0133] The atmosphere light display mode generation device of this embodiment is used to implement the corresponding atmosphere light display mode generation method in the aforementioned multiple method embodiments, and has the beneficial effects of the corresponding method embodiments, which will not be repeated here. In addition, the functional implementation of each module in the deadlock processing device of this embodiment can refer to the description of the corresponding part in the aforementioned method embodiments, which will not be repeated here.
[0134] Reference Figure 4 , shows a schematic diagram of the structure of an electronic device according to an embodiment of the present application. The specific embodiment of the present application does not limit the specific implementation of the electronic device.
[0135] like Figure 4 As shown, the electronic device may include: a processor (processor) 402, a communication interface (Communications Interface) 404, a memory (memory) 406, and a communication bus 408.
[0136] in:
[0137] The processor 402 , the communication interface 404 , and the memory 406 communicate with each other via a communication bus 408 .
[0138] The communication interface 404 is used to communicate with other electronic devices or servers.
[0139] The processor 402 is used to execute the program 410, and specifically can execute the relevant steps in the above-mentioned embodiment of the ambient light display mode generation method.
[0140] Specifically, the program 410 may include program codes, which include computer operation instructions.
[0141] The processor 402 may be a central processing unit (CPU), or an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present application. The one or more processors included in the smart device may be processors of the same type, such as one or more CPUs; or may be processors of different types, such as one or more CPUs and one or more ASICs.
[0142] The memory 406 is used to store the program 410. The memory 406 may include a high-speed RAM memory, and may also include a non-volatile memory, such as at least one disk memory.
[0143] The program 410 may be specifically configured to enable the processor 402 to perform the following operations:
[0144] In an optional implementation, the program 410 is also used to enable the processor 402 to implement each step in the program 410. The specific implementation can refer to the corresponding descriptions in the corresponding steps and units in the above-mentioned embodiment of the method for generating the display mode of the atmosphere light, which will not be repeated here. A person skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working process of the above-described device and module can refer to the corresponding process description in the above-mentioned method embodiment, which will not be repeated here.
[0145] An embodiment of the present application also provides a computer program product, including computer instructions, which instruct a computing device to execute operations corresponding to any of the atmosphere light display mode generation methods in the above-mentioned multiple method embodiments.
[0146] It should be pointed out that, according to the needs of implementation, the various components / steps described in the embodiments of the present application can be split into more components / steps, or two or more components / steps or partial operations of components / steps can be combined into new components / steps to achieve the purpose of the embodiments of the present application.
[0147] The above-mentioned method according to the embodiment of the present application can be implemented in hardware, firmware, or implemented as software or computer code that can be stored in a recording medium (such as a CD ROM, RAM, floppy disk, hard disk or magneto-optical disk), or implemented as a computer code originally stored in a remote recording medium or a non-temporary machine-readable medium downloaded through a network and to be stored in a local recording medium, so that the method described herein can be stored in such software processing on a recording medium using a general-purpose computer, a dedicated processor or programmable or dedicated hardware (such as an AS IC or FPGA). It can be understood that a computer, a processor, a microprocessor controller or programmable hardware includes a storage component (e.g., RAM, ROM, flash memory, etc.) that can store or receive software or computer code, and when the software or computer code is accessed and executed by a computer, a processor or hardware, the method for generating the ambient light display mode described herein is implemented. In addition, when a general-purpose computer accesses the code for implementing the method for generating the ambient light display mode shown herein, the execution of the code converts the general-purpose computer into a dedicated computer for executing the method for generating the ambient light display mode shown herein.
[0148] Those of ordinary skill in the art will appreciate that the units and method steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the embodiments of the present application.
[0149] The above implementation methods are only used to illustrate the embodiments of the present application, and are not limitations on the embodiments of the present application. Ordinary technicians in the relevant technical field can make various changes and modifications without departing from the spirit and scope of the embodiments of the present application. Therefore, all equivalent technical solutions also belong to the scope of the embodiments of the present application. The scope of patent protection of the embodiments of the present application should be limited by the claims.
Claims
1. A method for generating an atmosphere light display mode, characterized in that: The method comprises: Collect multiple music clips; integrating the plurality of music clips into target music; Determining the number of first notes in the target music according to the pitches of the notes in the target music, wherein the pitches of the first notes are less than a first pitch threshold; determining the breathing frequency of the atmosphere light according to the number of the first notes; Determine the brightness of the atmosphere light according to the corresponding relationship between the pitch of the note and the brightness of the atmosphere light; and determine the duration of the brightness of the atmosphere light according to the corresponding relationship between the duration of the note and the duration of the brightness of the atmosphere light; The ambient light display mode is generated according to the breathing frequency, the brightness and the duration.
2. The method according to claim 1, characterized in that The collecting of multiple music clips comprises: Get the current time; According to the current time, determining whether there is a first preset time range corresponding to the current time in a plurality of preset time ranges; If so, the plurality of music clips are collected.
3. The method according to claim 2, wherein if the plurality of music clips exist, collecting the plurality of music clips comprises: Determining at least one of the music style tags according to the correspondence between the first preset time range and the music style tags; The plurality of music clips corresponding to at least one of the music style tags are collected.
4. The method according to claim 1, characterized in that: The step of integrating the plurality of music clips into target music comprises: Determining music style tags of the multiple music clips; Generate a first music with the same music style tag as the plurality of music clips; The first music is determined as the target music, so as to integrate the multiple music clips into the target music.
5. The method according to claim 1, characterized in that: Determining the brightness of the atmosphere light according to the correspondence between the pitch of the note and the brightness of the atmosphere light includes: According to the pitch of the note, determining a first pitch range corresponding to the note from a plurality of pitch ranges; The brightness of the atmosphere light is determined according to the corresponding relationship between the first pitch range and the brightness of the atmosphere light.
6. The method according to any one of claims 1 to 5, characterized in that: The method further comprises: Collecting user’s facial expression data; determining a user's mood based on the facial expression data; According to the corresponding relationship between the user's mood and the first adjustment coefficient, the duration is adjusted to determine a first duration; The step of generating the atmosphere light display mode according to the breathing frequency, the brightness and the duration includes: The ambient light display mode is generated according to the breathing frequency, the brightness and the first duration.
7. The method according to claims 1-5, characterized in that: The method further comprises: Get the weather data for the current time; determining weather based on the weather data; According to the corresponding relationship between the weather and the second adjustment coefficient, the duration is adjusted to determine a second duration; The step of generating the atmosphere light display mode according to the breathing frequency, the brightness and the duration includes: The ambient light display mode is generated according to the breathing frequency, the brightness and the second duration.
8. An atmosphere light display mode generating device, characterized in that: The device comprises: A collection module, used for collecting multiple music clips; An integration module, used for integrating the multiple music clips into target music; A first determination module, configured to determine the number of first notes in the target music according to the pitches of the notes in the target music, wherein the pitches of the first notes are less than a first pitch threshold; a second determining module, configured to determine a breathing frequency of the atmosphere lamp according to the number of the first notes; A third determination module is used to determine the brightness of the atmosphere light according to the corresponding relationship between the pitch of the note and the brightness of the atmosphere light; and to determine the duration of the brightness of the atmosphere light according to the corresponding relationship between the duration of the note and the duration of the brightness of the atmosphere light; A generating module is used to generate the atmosphere light display mode according to the breathing frequency, the brightness and the duration.
9. An electronic device, comprising: A processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other via the communication bus; The memory is used to store at least one executable instruction, and the executable instruction enables the processor to perform operations corresponding to the ambient light display mode generation method according to any one of claims 1-7.
10. A computer storage medium having a computer program stored thereon, wherein when the program is executed by a processor, the method for generating an ambient light display mode as claimed in any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
A method and system for automobile lighting control based on music signal
CN109089355A
Method and device for generating electronic photo album and equipment
CN113487699A
Method and device for controlling light display
CN117693086A
Atmosphere lamp control method and device, electronic equipment and storage medium
CN118102547A
Vehicle atmosphere lamp control method and device, electronic equipment and storage medium
CN118574272A