CN116714512A - In-vehicle atmosphere lamp adjusting method and system based on DMS and vehicle-mounted KTV - Google Patents
In-vehicle atmosphere lamp adjusting method and system based on DMS and vehicle-mounted KTV Download PDFInfo
- Publication number
- CN116714512A CN116714512A CN202310432488.4A CN202310432488A CN116714512A CN 116714512 A CN116714512 A CN 116714512A CN 202310432488 A CN202310432488 A CN 202310432488A CN 116714512 A CN116714512 A CN 116714512A
- Authority
- CN
- China
- Prior art keywords
- atmosphere lamp
- brightness
- driver
- vehicle
- value
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 39
- 230000036651 mood Effects 0.000 claims abstract description 48
- 230000008451 emotion Effects 0.000 claims abstract description 24
- 238000004590 computer program Methods 0.000 claims description 18
- 238000001228 spectrum Methods 0.000 claims description 12
- 238000012544 monitoring process Methods 0.000 claims description 7
- 238000004364 calculation method Methods 0.000 claims description 6
- 230000009466 transformation Effects 0.000 claims description 6
- 238000006243 chemical reaction Methods 0.000 claims description 4
- 230000033764 rhythmic process Effects 0.000 description 5
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 238000010586 diagram Methods 0.000 description 3
- 230000008859 change Effects 0.000 description 2
- 238000004891 communication Methods 0.000 description 2
- 238000013461 design Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- 230000001105 regulatory effect Effects 0.000 description 2
- 230000003044 adaptive effect Effects 0.000 description 1
- 238000004422 calculation algorithm Methods 0.000 description 1
- 230000001276 controlling effect Effects 0.000 description 1
- 238000005034 decoration Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 230000008921 facial expression Effects 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000011664 signaling Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Classifications
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B60—VEHICLES IN GENERAL
- B60Q—ARRANGEMENT OF SIGNALLING OR LIGHTING DEVICES, THE MOUNTING OR SUPPORTING THEREOF OR CIRCUITS THEREFOR, FOR VEHICLES IN GENERAL
- B60Q3/00—Arrangement of lighting devices for vehicle interiors; Lighting devices specially adapted for vehicle interiors
- B60Q3/80—Circuits; Control arrangements
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B60—VEHICLES IN GENERAL
- B60Q—ARRANGEMENT OF SIGNALLING OR LIGHTING DEVICES, THE MOUNTING OR SUPPORTING THEREOF OR CIRCUITS THEREFOR, FOR VEHICLES IN GENERAL
- B60Q3/00—Arrangement of lighting devices for vehicle interiors; Lighting devices specially adapted for vehicle interiors
- B60Q3/70—Arrangement of lighting devices for vehicle interiors; Lighting devices specially adapted for vehicle interiors characterised by the purpose
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B60—VEHICLES IN GENERAL
- B60Q—ARRANGEMENT OF SIGNALLING OR LIGHTING DEVICES, THE MOUNTING OR SUPPORTING THEREOF OR CIRCUITS THEREFOR, FOR VEHICLES IN GENERAL
- B60Q9/00—Arrangement or adaptation of signal devices not provided for in one of main groups B60Q1/00 - B60Q7/00, e.g. haptic signalling
-
- H—ELECTRICITY
- H05—ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
- H05B—ELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
- H05B47/00—Circuit arrangements for operating light sources in general, i.e. where the type of light source is not relevant
- H05B47/10—Controlling the light source
- H05B47/105—Controlling the light source in response to determined parameters
- H05B47/115—Controlling the light source in response to determined parameters by determining the presence or movement of objects or living beings
- H05B47/12—Controlling the light source in response to determined parameters by determining the presence or movement of objects or living beings by detecting audible sound
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02B—CLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
- Y02B20/00—Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
- Y02B20/40—Control techniques providing energy savings, e.g. smart controller or presence detection
Landscapes
- Engineering & Computer Science (AREA)
- Mechanical Engineering (AREA)
- Human Computer Interaction (AREA)
- Circuit Arrangement For Electric Light Sources In General (AREA)
Abstract
The application belongs to the technical field of vehicle-mounted control systems, and particularly relates to a method and a system for adjusting an in-vehicle atmosphere lamp based on DMS (digital management system) and vehicle-mounted KTV (KTV), wherein the adjusting method comprises the following steps: acquiring the mood data of the driver provided by the DMS; calculating the color value of the atmosphere lamp according to the obtained mood data of the driver; the vehicle-mounted KTV plays music and detects whether a driver makes a sound; if the driver does not make a sound, calculating the brightness value of the atmosphere lamp according to the music sound; if the driver makes a sound, calculating the brightness value of the atmosphere lamp by combining the human voice and the music voice; and the atmosphere lamp is adjusted by combining the color value and the brightness value so as to adjust and alleviate the emotion of the driver. According to the method and the system for adjusting the atmosphere lamp in the vehicle based on the DMS and the vehicle-mounted KTV, which are disclosed by the application, not only can the emotion of a driver be effectively adjusted and the driving atmosphere be alleviated, but also the driving safety can be effectively ensured, and the driving experience of the driver is improved.
Description
Technical Field
The application belongs to the technical field of vehicle-mounted control systems, and particularly relates to a method and a system for adjusting an in-vehicle atmosphere lamp based on DMS and vehicle-mounted KTV.
Background
An in-car atmosphere lamp is a lighting decoration system capable of performing color and brightness conversion; with the continuous progress of technology and the improvement of the requirements of people on driving comfort, in the existing automobiles, atmosphere lamps are generally adopted to decorate and adjust the environment in the automobiles.
In the prior art, a common adjustment mode of an atmosphere lamp in a vehicle is to adjust the atmosphere lamp based on the emotion of a driver or based on the rhythm of music; the two adjustment modes generally have the following problems:
1. adjusting based on the emotion of the driver, namely adjusting the color and the brightness of the atmosphere lamp by collecting emotion data of the driver; for example: in the patent with the bulletin number of CN115402333A and the patent name of in-vehicle interaction control system and method based on the emotion of the driver and storage medium, the emotion of the driver is adjusted in an adaptive atmosphere lamp adjusting mode and a corresponding music playing mode according to emotion data of the driver, so that a relaxed and pleasant driving atmosphere is created, and the fatigue of the driver is relieved. Although the emotion of the driver can be effectively regulated by the regulating method, the emotion of the driver is often aggravated according to the mode that the driver plays corresponding music according to the emotion; for example, the current mood of the driver is more excited, and the control system in the vehicle not only adjusts the atmosphere lamp to be red and bright, but also plays more exciting music at the same time, and the adjusting mode easily causes the driver to be over excited, so that the driving safety is not easy to ensure.
2. Adjusting based on the rhythm of music, namely directly converting the music into a digital signal according to an audio analog signal and controlling the atmosphere lamp; for example: patent publication number CN114828359A, patent name is music-based atmosphere lamp display method, device, equipment and storage medium, and discloses a method for adjusting atmosphere lamps based on music rhythm. Although the atmosphere lamp follows the sound output to perform the rhythm, the effect is not necessarily wanted by the customer; examples: the driver's current mood is poor, and as a result the rhythm following the sound output is red and bright, which may lead to a worse driver's mood.
Therefore, the design of the in-vehicle atmosphere lamp adjusting technology which can effectively adjust the emotion of the driver, alleviate the driving atmosphere and effectively ensure the driving safety has great significance in improving the driving experience of the driver.
Disclosure of Invention
In order to solve the defects of the prior art, the application provides the in-vehicle atmosphere lamp adjusting method based on the DMS and the vehicle-mounted KTV, which is characterized in that the color of the atmosphere lamp is adjusted through the mood data of a driver, the brightness of the atmosphere lamp is adjusted through the combination of music sound or music sound and human voice, and then the whole adjustment of the in-vehicle atmosphere lamp is realized by combining the color and the brightness of the atmosphere lamp. The application also provides a vehicle atmosphere lamp adjusting system based on the DMS and the vehicle-mounted KTV, which is formed by combining the DMS module, the vehicle-mounted KTV module and the control module, and can adaptively adjust the vehicle atmosphere lamp according to the emotion, the human voice and the music of a driver so as to adjust the emotion of the driver and alleviate the driving atmosphere, thereby achieving the purposes of ensuring the driving safety and improving the driving experience of the driver.
The technical effects to be achieved by the application are realized by the following technical scheme:
in a first aspect, the application provides a method for adjusting an in-vehicle atmosphere lamp based on DMS and vehicle-mounted KTV, which comprises the following steps:
acquiring the mood data of the driver provided by the DMS;
calculating the color value of the atmosphere lamp according to the obtained mood data of the driver;
the vehicle-mounted KTV plays music and detects whether a driver makes a sound;
if the driver does not make a sound, calculating the brightness value of the atmosphere lamp according to the music sound;
if the driver makes a sound, calculating the brightness value of the atmosphere lamp by combining the human voice and the music voice;
and the atmosphere lamp is adjusted by combining the color value and the brightness value so as to adjust and alleviate the emotion of the driver.
Further, in the step of calculating the color value of the atmosphere lamp according to the obtained mood data of the driver, if the mood of the driver is the nth mood data, the color value of the atmosphere lamp is output as the corresponding nth color; wherein N is an integer not less than 1.
Further, the step of calculating the color value of the atmosphere lamp according to the obtained mood data of the driver includes:
calculating the color value of the atmosphere lamp according to the obtained mood data of the driver;
calculating the credibility of the mood data of the driver to obtain the transparency of the color value of the atmosphere lamp;
and calculating the color value of the atmosphere lamp according to the color value and the transparency.
Further, if the driver does not make a sound, in the step of calculating the brightness value of the atmosphere lamp according to the musical sound,
monitoring the frequency spectrum of music accompaniment in playing, and converting the frequency spectrum into a music frequency domain value through Fourier transformation;
dividing the length of the music frequency domain value into different length ranges according to the number of atmosphere lamp areas;
after the brightness of the atmosphere lamps is divided into different grades, according to the number of the brightness atmosphere lamp grades, the brightness values of the atmosphere lamps in different areas are calculated.
Further, after the brightness of the atmosphere lamp is divided into different grades, according to the number of brightness grades of the atmosphere lamp, in the step of calculating the brightness values of the atmosphere lamps in different areas, the calculation formula of the brightness values is as follows:
Brightness[x]=Light[x]=Fft[x]*N/255;
wherein Brightness [ x ] is the Brightness value of the atmosphere lamp in a certain area, light [ x ] is the music Brightness value of the atmosphere lamp in a certain area, fft [ x ] is the music frequency domain value in a certain length range, and N is the number of atmosphere lamp grades.
Further, the step of calculating the brightness value of the atmosphere lamp by combining the human voice and the music voice if the driver makes a sound includes:
monitoring the frequency spectrum of music accompaniment in playing, and converting the frequency spectrum into a music frequency domain value through Fourier transformation;
collecting Audio data of a driver by using a microphone, and creating a new Audio Track;
setting the sound of the Audio Track to 0, writing the human voice Audio data into the Audio Track, and obtaining a human voice frequency domain value after conversion;
dividing the length of the music frequency domain value and the length of the human voice frequency domain value into different length ranges according to the number of atmosphere lamp areas;
after the brightness of the atmosphere lamps is divided into different grades, according to the number of the brightness atmosphere lamp grades, the brightness values of the atmosphere lamps in different areas are calculated.
Further, after the brightness of the atmosphere lamp is divided into different grades, according to the number of brightness grades of the atmosphere lamp, in the step of calculating the brightness values of the atmosphere lamps in different areas, the calculation formula of the brightness values is as follows:
Brightness’[x]=(Light’[x]+record Light[x])/2;
and record Light [ x ] =record Fft [ x ]/255;
wherein Brightness 'x is the Brightness value of an atmosphere lamp in a certain area, light' x is the music Brightness value of the atmosphere lamp in a certain area, record Light is the human voice Brightness value of the atmosphere lamp in a certain area, record Fft x is the human voice frequency domain value in a certain length range, and N is the number of the atmosphere lamp grades.
In a second aspect, the present application also provides an in-vehicle atmosphere lamp adjustment system based on DMS and on-vehicle KTV, the adjustment system comprising:
the DMS module is arranged in the automobile and used for acquiring mood data of a driver;
the vehicle-mounted KTV module is arranged in the automobile and used for playing music and detecting whether a driver makes a sound or not;
the atmosphere lamp module is arranged in the automobile and used for adjusting the atmosphere in the automobile;
the control module is respectively connected with the DMS module, the vehicle-mounted KTV module and the atmosphere lamp module, is arranged in the automobile and is used for calculating the color value of the atmosphere lamp according to the obtained mood data of the driver; calculating the brightness value of the atmosphere lamp; and adjusting the atmosphere lamp according to the calculated color value and brightness value to adjust and alleviate the emotion of the driver.
In a third aspect, the application also provides an electronic device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, and the processor, when executing the computer program, implements the steps of the adjustment method as described above.
In a fourth aspect, the present application also provides a computer-readable storage medium storing a computer program, which when executed by a processor implements the steps of the adjustment method as described above.
In summary, the present application has at least the following advantages:
1. according to the method for adjusting the atmosphere lamp in the vehicle based on the DMS and the vehicle-mounted KTV, the color of the atmosphere lamp is adjusted through the mood data of the driver, the brightness of the atmosphere lamp is adjusted through music sound or combination of music sound and human voice, and then the overall adjustment of the atmosphere lamp in the vehicle is achieved through combination of the color and the brightness of the atmosphere lamp.
2. According to the in-vehicle atmosphere lamp adjusting system based on the DMS and the vehicle-mounted KTV, the DMS module, the vehicle-mounted KTV module and the control module are combined, and the in-vehicle atmosphere lamp can be adjusted adaptively according to the emotion, the human voice and the music of a driver, so that the emotion of the driver is adjusted, the driving atmosphere is relaxed, and the purposes of ensuring the driving safety and improving the driving experience of the driver are achieved.
Drawings
FIG. 1 is a schematic block diagram of an in-vehicle atmosphere lamp adjustment method based on a DMS and a vehicle-mounted KTV in an embodiment of the present application;
FIG. 2 is a schematic flow chart of a method for adjusting an in-vehicle atmosphere lamp based on a DMS and a vehicle-mounted KTV in an embodiment of the application;
FIG. 3 is a flow chart of calculating color values of an atmosphere lamp according to an embodiment of the present application;
FIG. 4 is a flowchart of calculating the brightness value of an atmosphere lamp according to musical sounds in an embodiment of the present application;
FIG. 5 is a flow chart of calculating the brightness value of an ambient light in combination with a human voice and a musical voice in an embodiment of the present application;
FIG. 6 is a schematic diagram of the structure of an in-vehicle atmosphere lamp adjustment system based on a DMS and a vehicle-mounted KTV in an embodiment of the present application;
fig. 7 is a schematic structural diagram of an electronic device in an embodiment of the application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
It should be noted that the terms "comprising" and "having" and any variations thereof in the embodiments of the present application and the accompanying drawings are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those listed steps or elements but may include other steps or elements not listed or inherent to such process, method, article, or apparatus.
Furthermore, the terms "first," "second," "third," and the like in the description of the present specification and in the appended claims, are used for distinguishing between descriptions and not necessarily for indicating or implying a relative importance.
Reference in the specification to "one embodiment" or "some embodiments" or the like means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," and the like in the specification are not necessarily all referring to the same embodiment, but mean "one or more but not all embodiments" unless expressly specified otherwise. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless expressly specified otherwise.
Example 1:
referring to fig. 1 and 2, the present embodiment provides a method for adjusting an in-vehicle atmosphere lamp based on DMS and vehicle KTV, where the adjusting method includes:
s100, acquiring the mood data of the driver provided by the DMS, for example, acquiring the mood data of the driver through the DMS (Driver Monitoring System ), wherein the DMS is preferably an in-vehicle camera arranged in the vehicle and used for acquiring the facial expression of the driver.
S200, calculating the color value of the atmosphere lamp according to the obtained mood data of the driver; if the mood of the driver is the N-th mood data, outputting the color value of the atmosphere lamp as the corresponding N-th color; wherein N is an integer not less than 1. For example:
if the driver's mood is ' hot ', the color value of the output atmosphere lamp is ' red ';
if the mood of the driver is 'vitality', the color value of the output atmosphere lamp is 'orange';
if the mood of the driver is optimistic, the color value of the output atmosphere lamp is yellow;
if the mood of the driver is 'peace', the color value of the output atmosphere lamp is 'green';
if the mood of the driver is 'calm', the color value of the output atmosphere lamp is 'purple';
if the mood of the driver is soft, the color value of the output atmosphere lamp is pink;
if the driver's mood is "clean", the color value of the output atmosphere lamp is "white".
Referring further to fig. 3, the specific calculation steps of the color values of the atmosphere lamp are as follows:
s210, calculating the color value of the atmosphere lamp according to the obtained mood data of the driver;
s220, calculating the credibility of the mood data of the driver to obtain the transparency of the color value of the atmosphere lamp;
s230, calculating the color value of the atmosphere lamp according to the color value and the transparency.
When the DMS determines the driver's mood, there is often a confidence value, which will calculate the transparency of the color value. For example, if the current driver's mood is hot, the color value is red, its color value RGB is 0x00FF0000, and from 0x onward, the first digit is transparency, the third digit is a red value, the fifth digit is a green value, and the seventh digit is a blue value. If the mood credibility of the current driver is 90%, the color value of the current atmosphere lamp is 0xf 6FF0000, wherein the first digit is 0xff 0.9=0xe6.
S300, playing music by the vehicle-mounted KTV and detecting whether a driver makes a sound; for example: the vehicle-mounted KTV plays music by using a Media Player of the android system, collects the sound of a driver through a microphone, and detects whether the driver emits the sound.
S400, if the driver does not make a sound, calculating the brightness value of the atmosphere lamp according to the musical sound, please further refer to FIG. 4, specifically comprising the following steps:
s410, monitoring a frequency spectrum of music accompaniment in playing, and converting the frequency spectrum into a music frequency domain value through Fourier transformation;
s420, dividing the length of the music frequency domain value into different length ranges according to the number of the atmosphere lamp areas, for example, if the atmosphere lamp is divided into 4 areas of front left, front right, back left and back right, the length of the music frequency domain value can be divided into 4 length ranges so as to correspond to different brightness of the atmosphere lamps of the 4 areas, and realizing the brightness gradual change adjustment of the atmosphere lamps.
S430, after dividing the brightness of the atmosphere lamps into different grades, calculating the brightness values of the atmosphere lamps in different areas according to the number of the brightness atmosphere lamp grades; for example, the brightness of the atmosphere lamp is divided into 10 levels, and the maximum value of the color code is 255, so that the brightness values of the atmosphere lamps in 4 areas can be calculated as follows:
Brightness[1]=Light[1]=Fft[1]*10/255;
Brightness[2]=Light[2]=Fft[2]*10/255;
Brightness[3]=Light[3]=Fft[3]*10/255;
Brightness[4]=Light[4]=Fft[4]*10/255;
wherein Brightness [1] is the Brightness value of the front left area atmosphere lamp, light [1] is the music Brightness value of the front left area atmosphere lamp, fft [1] is the music frequency domain value within the first length range;
brightness 2 is the Brightness value of the front right area atmosphere lamp, light 2 is the music Brightness value of the front right area atmosphere lamp, fft is the music frequency domain value within the second length range;
brightness [3] is the Brightness value of the atmosphere lamp in the rear left area, light [3] is the music Brightness value of the atmosphere lamp in the rear left area, and Fft [3] is the music frequency domain value in the third length range;
brightness 4 is the Brightness value of the rear right area atmosphere lamp, light 4 is the music Brightness value of the rear right area atmosphere lamp, and Fft [4] is the music frequency domain value within the fourth length range.
S500, if a driver makes a sound, calculating the brightness value of the atmosphere lamp by combining the voice and the music; referring further to fig. 5, specifically, the method comprises the following steps:
s510, monitoring a frequency spectrum of music accompaniment in playing, and converting the frequency spectrum into a music frequency domain value through Fourier transformation;
s520, utilizing a microphone to collect Audio data of a driver, and creating a new Audio Track;
s530, setting the sound of the Audio Track to be 0, writing the voice Audio data into the Audio Track, and obtaining a voice frequency domain value after conversion;
s540, dividing the length of the music frequency domain value and the length of the human voice frequency domain value into different length ranges according to the number of atmosphere lamp areas; for example, if the atmosphere lamp is divided into 4 areas of front left, front right, back left and back right, the length of the music frequency domain value can be divided into 4 length ranges, so as to correspond to different brightness of the atmosphere lamp in the 4 areas, and realize the brightness gradual change adjustment of the atmosphere lamp.
S550, after dividing the brightness of the atmosphere lamps into different grades, calculating the brightness values of the atmosphere lamps in different areas according to the number of the brightness atmosphere lamp grades; specifically, in this step, the calculation formula of the luminance value is as follows:
Brightness’[x]=(Light’[x]+record Light[x])/2;
and record Light [ x ] =record Fft [ x ]/255;
wherein Brightness 'x is the Brightness value of an atmosphere lamp in a certain area, light' x is the music Brightness value of the atmosphere lamp in a certain area, record Light x is the human voice Brightness value of the atmosphere lamp in a certain area, record Fft x is the human voice frequency domain value in a certain length range, and N is the number of atmosphere lamp grades.
For example, by dividing the brightness of the atmosphere lamp into 10 levels, it can be calculated,
1) The brightness values of the front left area atmosphere lamp are as follows:
Brightness’[1]=(Light’[1]+record Light[1])/2;
and record Light [1] =record Fft [1] ×10/255;
Light’[1]=Fft’[1]*10/255;
wherein Brightness ' 1 is the luminance value of the front left area atmosphere lamp, light ' 1 is the music luminance value of the front left area atmosphere lamp, record Light 1 is the human voice luminance value of the front left area atmosphere lamp, record Fft 1 is the human voice frequency domain value in the first length range, and Fft ' 1 is the music frequency domain value in the first length range.
2) The brightness values of the front right zone atmosphere lamp are as follows:
Brightness’[2]=(Light’[2]+record Light[2])/2;
and record Light [2] =record Fft [2 ]. Times.10/255;
Light’[2]=Fft’[2]*10/255;
wherein Brightness ' 2 is the luminance value of the front right zone atmosphere lamp, light ' 2 is the music luminance value of the front right zone atmosphere lamp, record Light 2 is the human voice luminance value of the front right zone atmosphere lamp, record Fft 2 is the human voice frequency domain value in the second length range, fft ' 2 is the music frequency domain value in the second length range.
3) The brightness values of the rear left area atmosphere lamp are as follows:
Brightness’[3]=(Light’[3]+record Light[3])/2;
and record Light [3] =record Fft [3 ]. Times.10/255;
Light’[3]=Fft’[3]*10/255;
wherein Brightness ' 3 is the luminance value of the rear left area atmosphere lamp, light ' 3 is the music luminance value of the rear left area atmosphere lamp, record Light 3 is the human voice luminance value of the rear left area atmosphere lamp, record Fft 3 is the human voice frequency domain value in the third length range, and Fft ' 3 is the music frequency domain value in the third length range.
4) The brightness values of the rear right zone atmosphere lamp are as follows:
Brightness’[4]=(Light’[4]+record Light[4])/2;
and record Light [4] =record Fft [4 ]. 10/255;
Light’[4]=Fft’[4]*10/255;
wherein Brightness ' 4 is the luminance value of the rear right zone atmosphere lamp, light ' 4 is the music luminance value of the rear right zone atmosphere lamp, record Light 4 is the human voice luminance value of the rear right zone atmosphere lamp, record Fft 4 is the human voice frequency domain value in the fourth length range, and Fft ' 4 is the music frequency domain value in the fourth length range.
600. The color value and the brightness value are combined, and the atmosphere lamp is adjusted to adjust and buffer the emotion of the driver; preferably, the calculated color value and brightness value are sent to the atmosphere lamp through the CAN, and the atmosphere lamp is adaptively adjusted and controlled, so that the emotion of a driver is alleviated, a relaxed driving atmosphere is built, and the driving experience of the driver is improved.
Example 2:
referring to fig. 6, the present embodiment provides an in-vehicle atmosphere lamp adjustment system based on DMS and vehicle KTV, the adjustment system includes: the system comprises a DMS module 10, a vehicle-mounted KTV module 20 and an atmosphere lamp module 30 which are arranged in an automobile, and a control module 40 which is respectively connected with the DMS module 10, the vehicle-mounted KTV module 20 and the atmosphere lamp module 30 and is arranged in the automobile; wherein, the DMS module 10 is used for acquiring the mood data of the driver; the vehicle-mounted KTV module 20 is used for playing music and detecting whether a driver makes a sound; the atmosphere lamp module 30 is used for adjusting the atmosphere in the vehicle. The control module 40 is used for calculating the color value of the atmosphere lamp according to the obtained mood data of the driver; calculating the brightness value of the atmosphere lamp; and adjusting the atmosphere lamp according to the calculated color value and brightness value to adjust and alleviate the emotion of the driver.
In-car atmosphere lamp governing system based on DMS and on-vehicle KTV in this embodiment utilizes DMS module, on-vehicle KTV module and control module to combine to form, can carry out the regulation of adaptability to in-car atmosphere lamp according to navigating mate's mood, human voice and music sound to adjust navigating mate's mood, alleviate the atmosphere of driving, in order to reach the purpose of guaranteeing driving security, promotion navigating mate's driving experience.
Example 3:
referring to fig. 7, the present embodiment provides an electronic device including a memory 101, a processor 102, and a computer program stored in the memory 101 and executable on the processor 102, where the processor 102 executes the computer program to implement the steps of the adjustment method described in embodiment 1.
The present embodiment also provides a computer-readable storage medium storing a computer program, and the computer program when executed by the processor 102 implements the steps of the adjustment method of embodiment 1.
According to the technical scheme of the embodiment, the application provides the in-vehicle atmosphere lamp adjusting method and the in-vehicle atmosphere lamp adjusting system based on the DMS and the vehicle-mounted KTV, which not only can effectively adjust the emotion of a driver and alleviate the driving atmosphere, but also can effectively ensure the driving safety and improve the driving experience of the driver.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and in part, not described or illustrated in any particular embodiment, reference is made to the related descriptions of other embodiments.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus/electronic device and method may be implemented in other manners. For example, the apparatus/electronic device embodiments described above are merely illustrative, e.g., the division of the modules or units is merely a logical function division, and there may be additional divisions in actual implementation, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection via interfaces, devices or units, which may be in electrical, mechanical or other forms.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
The integrated modules/units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the present application may implement all or part of the flow of the method of the above embodiment, or may be implemented by a computer program to instruct related hardware, where the computer program may be stored in a computer readable storage medium, and when the computer program is executed by a processor, the computer program may implement the steps of each of the method embodiments described above. Wherein the computer program comprises computer program code which may be in source code form, object code form, executable file or some intermediate form etc. The computer readable medium may include: any entity or device capable of carrying the computer program code, a recording medium, a U disk, a removable hard disk, a magnetic disk, an optical disk, a computer Memory, a Read-Only Memory (ROM), a random access Memory (RandomAccess Memory, RAM), an electrical carrier signal, a telecommunications signal, a software distribution medium, and so forth. It should be noted that the computer readable medium contains content that can be appropriately scaled according to the requirements of jurisdictions in which such content is subject to legislation and patent practice, such as in certain jurisdictions in which such content is subject to legislation and patent practice, the computer readable medium does not include electrical carrier signals and telecommunication signals.
The above embodiments are only for illustrating the technical solution of the present application, and not for limiting the same; although the application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present application, and are intended to be included in the scope of the present application.
Claims (10)
1. An in-vehicle atmosphere lamp adjusting method based on DMS and vehicle-mounted KTV is characterized by comprising the following steps:
acquiring the mood data of the driver provided by the DMS;
calculating the color value of the atmosphere lamp according to the obtained mood data of the driver;
the vehicle-mounted KTV plays music and detects whether a driver makes a sound;
if the driver does not make a sound, calculating the brightness value of the atmosphere lamp according to the music sound;
if the driver makes a sound, calculating the brightness value of the atmosphere lamp by combining the human voice and the music voice;
and adjusting the atmosphere lamp by combining the color value and the brightness value so as to adjust and alleviate the emotion of the driver.
2. The method for adjusting an in-vehicle atmosphere lamp based on DMS and on-vehicle KTV according to claim 1, wherein in the step of calculating a color value of the atmosphere lamp based on the obtained driver's mood data,
if the mood of the driver is the N-th mood data, outputting the color value of the atmosphere lamp as the corresponding N-th color; wherein N is an integer not less than 1.
3. The method for adjusting the atmosphere lamp in the vehicle based on the DMS and the KTV in the vehicle according to claim 1, wherein the step of calculating the color value of the atmosphere lamp based on the obtained mood data of the driver includes:
calculating the color value of the atmosphere lamp according to the obtained mood data of the driver;
calculating the credibility of the mood data of the driver to obtain the transparency of the color value of the atmosphere lamp;
and calculating the color value of the atmosphere lamp according to the color value and the transparency.
4. The method for adjusting an in-vehicle atmosphere lamp based on DMS and on-vehicle KTV according to claim 1, wherein in the step of calculating the brightness value of the atmosphere lamp from musical sound if the driver does not make a sound,
monitoring the frequency spectrum of music accompaniment in playing, and converting the frequency spectrum into a music frequency domain value through Fourier transformation;
dividing the length of the music frequency domain value into different length ranges according to the number of atmosphere lamp areas;
after the brightness of the atmosphere lamps is divided into different grades, according to the number of the brightness atmosphere lamp grades, the brightness values of the atmosphere lamps in different areas are calculated.
5. The method for adjusting the atmosphere lamp in the vehicle based on the DMS and the vehicle KTV according to claim 4, wherein, after the brightness of the atmosphere lamp is divided into different levels, in the step of calculating the brightness values of the atmosphere lamps in different areas according to the number of the brightness levels of the atmosphere lamp, a calculation formula of the brightness values is as follows:
Brightness[x]=Light[x]=Fft[x]*N/255;
wherein Brightness [ x ] is the Brightness value of the atmosphere lamp in a certain area, light [ x ] is the music Brightness value of the atmosphere lamp in a certain area, fft [ x ] is the music frequency domain value in a certain length range, and N is the number of atmosphere lamp grades.
6. The method for adjusting the atmosphere lamp in a vehicle based on DMS and KTV in vehicle according to claim 1, wherein the step of calculating the brightness value of the atmosphere lamp in combination with the human voice and the music voice if the driver makes the sound comprises:
monitoring the frequency spectrum of music accompaniment in playing, and converting the frequency spectrum into a music frequency domain value through Fourier transformation;
collecting Audio data of a driver by using a microphone, and creating a new Audio Track;
setting the sound of the Audio Track to 0, writing the human voice Audio data into the Audio Track, and obtaining a human voice frequency domain value after conversion;
dividing the length of the music frequency domain value and the length of the human voice frequency domain value into different length ranges according to the number of atmosphere lamp areas;
after the brightness of the atmosphere lamps is divided into different grades, according to the number of the brightness atmosphere lamp grades, the brightness values of the atmosphere lamps in different areas are calculated.
7. The method for adjusting the atmosphere lamp in the vehicle based on the DMS and the vehicle KTV according to claim 6, wherein after the brightness of the atmosphere lamp is divided into different levels, in the step of calculating the brightness values of the atmosphere lamps in different areas according to the number of the brightness levels of the atmosphere lamp, a calculation formula of the brightness values is as follows:
Brightness’[x]=(Light’[x]+record Light[x])/2;
and record Light [ x ] =record Fft [ x ]/255;
wherein Brightness 'x is the Brightness value of an atmosphere lamp in a certain area, light' x is the music Brightness value of the atmosphere lamp in a certain area, record Light is the human voice Brightness value of the atmosphere lamp in a certain area, record Fft x is the human voice frequency domain value in a certain length range, and N is the number of the atmosphere lamp grades.
8. In-car atmosphere lamp governing system based on DMS and on-vehicle KTV, characterized in that includes:
the DMS module is arranged in the automobile and used for acquiring mood data of a driver;
the vehicle-mounted KTV module is arranged in the automobile and used for playing music and detecting whether a driver makes a sound or not;
the atmosphere lamp module is arranged in the automobile and used for adjusting the atmosphere in the automobile;
the control module is respectively connected with the DMS module, the vehicle-mounted KTV module and the atmosphere lamp module, is arranged in the automobile and is used for calculating the color value of the atmosphere lamp according to the obtained mood data of the driver; calculating the brightness value of the atmosphere lamp; and adjusting the atmosphere lamp according to the calculated color value and brightness value to adjust and alleviate the emotion of the driver.
9. An electronic device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the steps of the adjustment method according to any one of claims 1-7 when the computer program is executed.
10. A computer-readable storage medium, which stores a computer program, characterized in that the computer program, when executed by a processor, implements the steps of the adjustment method according to any one of claims 1-7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310432488.4A CN116714512A (en) | 2023-04-17 | 2023-04-17 | In-vehicle atmosphere lamp adjusting method and system based on DMS and vehicle-mounted KTV |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310432488.4A CN116714512A (en) | 2023-04-17 | 2023-04-17 | In-vehicle atmosphere lamp adjusting method and system based on DMS and vehicle-mounted KTV |
Publications (1)
Publication Number | Publication Date |
---|---|
CN116714512A true CN116714512A (en) | 2023-09-08 |
Family
ID=87863825
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310432488.4A Pending CN116714512A (en) | 2023-04-17 | 2023-04-17 | In-vehicle atmosphere lamp adjusting method and system based on DMS and vehicle-mounted KTV |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116714512A (en) |
-
2023
- 2023-04-17 CN CN202310432488.4A patent/CN116714512A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7881934B2 (en) | Method and system for adjusting the voice prompt of an interactive system based upon the user's state | |
CN109089355B (en) | Automobile light control method and system based on music signals | |
KR20200123503A (en) | System and method for making engine sound with AI based on driver's condition | |
CN110245254A (en) | Control method, device, readable storage medium storing program for executing and the electronic equipment of automobile atmosphere lamp | |
CN1705977A (en) | Apparatus for acoustically improving an environment | |
CN110461077A (en) | A kind of lamp light control method, Light Control Unit and readable storage medium storing program for executing | |
CN110996477B (en) | Air conditioner lamp control method, computer device and computer readable storage medium | |
US11275550B2 (en) | Systems for generating audio signals and associated methods | |
CN114828359A (en) | Music-based atmosphere lamp display method, device, equipment and storage medium | |
CN114103850A (en) | System for realizing active sound enhancement of automobile | |
KR101804772B1 (en) | Sound control apparatus, vehicle and method of controlling thereof | |
CN110789478B (en) | Vehicle-mounted sound parameter auxiliary adjusting method and device and audio processor | |
CN116714512A (en) | In-vehicle atmosphere lamp adjusting method and system based on DMS and vehicle-mounted KTV | |
CN115571047A (en) | Vehicle-mounted atmosphere lamp rhythm control method, device, equipment, chip and system | |
WO2024087727A1 (en) | Voice data processing method based on in-vehicle voice ai, and related device | |
CN117400826A (en) | Control method, device, equipment and storage medium for vehicle illumination | |
US11437016B2 (en) | Information processing method, information processing device, and program | |
CN221329178U (en) | Vehicle light adjusting system and vehicle based on audio analysis | |
Maunder | Experiences Tuning an Augmented Power Unit Sound System for Both Interior and Exterior of an Electric Car | |
EP3821427B1 (en) | Method for generating an audio signal, in particular for active control of the sound of the engine of a land vehicle, and corresponding apparatus | |
WO2024051347A1 (en) | Method and apparatus for controlling light display | |
CN114379468B (en) | Vehicle sound self-adaptive adjusting method, device, equipment and storage medium | |
CN115742949B (en) | Music rhythm atmosphere lamp and vehicle | |
KR100986909B1 (en) | Electronic sound(horn and engine sound) generation device and the method | |
CN114765914A (en) | Karaoke control method and related equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |