CN109743819A - Control method and device, storage medium and the vehicle-mounted atmosphere lamp of vehicle-mounted atmosphere lamp - Google Patents

Control method and device, storage medium and the vehicle-mounted atmosphere lamp of vehicle-mounted atmosphere lamp Download PDF

Info

Publication number
CN109743819A
CN109743819A CN201811498019.8A CN201811498019A CN109743819A CN 109743819 A CN109743819 A CN 109743819A CN 201811498019 A CN201811498019 A CN 201811498019A CN 109743819 A CN109743819 A CN 109743819A
Authority
CN
China
Prior art keywords
color
vehicle
parameter
control parameter
atmosphere lamp
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
Application number
CN201811498019.8A
Other languages
Chinese (zh)
Inventor
刘佳
王永亮
池江涛
刘志萌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Wutong Chelian Technology Co Ltd
Original Assignee
Beijing Wutong Chelian Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Beijing Wutong Chelian Technology Co Ltd filed Critical Beijing Wutong Chelian Technology Co Ltd
Priority to CN201811498019.8A priority Critical patent/CN109743819A/en
Publication of CN109743819A publication Critical patent/CN109743819A/en
Pending legal-status Critical Current

Links

Landscapes

  • Circuit Arrangement For Electric Light Sources In General (AREA)
  • Arrangements Of Lighting Devices For Vehicle Interiors, Mounting And Supporting Thereof, Circuits Therefore (AREA)

Abstract

The invention discloses a kind of control methods of vehicle-mounted atmosphere lamp, comprising: obtains the state parameter of voice applications on mobile unit;According to the state parameter, the control parameter of vehicle-mounted atmosphere lamp is generated;Based on the control parameter, the color and/or brightness of the vehicle-mounted atmosphere lamp are controlled.The present invention further simultaneously discloses control device, a kind of computer storage medium and a kind of vehicle-mounted atmosphere lamp of a kind of vehicle-mounted atmosphere lamp.

Description

Control method and device, storage medium and the vehicle-mounted atmosphere lamp of vehicle-mounted atmosphere lamp
Technical field
The present invention relates to appliance field more particularly to a kind of control method and device of vehicle-mounted atmosphere lamp, storage medium and Vehicle-mounted atmosphere lamp.
Background technique
Vehicle-mounted atmosphere lamp is the interior electric appliance generally used, but real-life vehicle-mounted atmosphere lamp needs manual setting more The color and brightness of lamp, atmosphere lamp color and brightness cannot achieve automatic control.Still lacking can be automatic to control according to the broadcasting of music Make the color and brightness method of vehicle-mounted atmosphere lamp.
Summary of the invention
The present invention provides a kind of control method and device of vehicle-mounted atmosphere lamp.
The technical scheme of the present invention is realized as follows:
On the one hand, a kind of control method of vehicle-mounted atmosphere lamp is provided, comprising:
Obtain the state parameter of voice applications on mobile unit;
According to the state parameter, the control parameter of vehicle-mounted atmosphere lamp is generated;
Based on the control parameter, the color and/or brightness of the vehicle-mounted atmosphere lamp are controlled.
Further, the state parameter for obtaining voice applications on mobile unit, comprising:
Obtain the image information for the application interface that voice applications are currently shown on mobile unit;
It is described according to the state parameter, generate the control parameter of vehicle-mounted atmosphere lamp, comprising:
According to described image information, color control parameter is determined;Wherein, the color control parameter, it is described for controlling The color of vehicle-mounted atmosphere lamp.
Further, described according to described image information, determine color control parameter, comprising:
The number of pixels of various colors in described image is counted, and generates the face of characterization color and number of pixels corresponding relationship Color Histogram;
Based on the color histogram, the color control parameter is determined.
Further, described to be based on the color histogram, determine color control parameter, comprising:
According to the corresponding color of the longest longitudinal stripe of length in the color histogram, the color control ginseng is determined Number.
Further, described to be based on the color histogram, determine color control parameter, comprising:
According to the color parameter value of color length and color of longitudinal stripe in the color histogram, determine selection according to According to parameter, wherein the color parameter value includes at least one of: hue value, intensity value and brightness value;
Based on the selection gist parameter, light color is selected;
According to the light color of selection, the color control parameter is generated.
Further, described according to described image information, determine color control parameter, comprising:
Described image is down-sampled, after acquisition is down-sampled image;
According to it is described it is down-sampled after image, determine the color control parameter.
Further, the state parameter for obtaining voice applications on mobile unit, comprising:
Obtain the audio frequency parameter of the currently playing audio of voice applications on the mobile unit;
It is described according to the state parameter, generate the control parameter of vehicle-mounted atmosphere lamp, comprising:
According to the audio frequency parameter, the brightness control parameter of the vehicle-mounted range lamp is generated, wherein the brightness control ginseng Count the brightness for controlling the vehicle-mounted atmosphere lamp.
Further, the audio frequency parameter for obtaining the currently playing audio of voice applications on the mobile unit, comprising:
Obtain the spectrum sequence of the currently playing audio of voice applications on the mobile unit;
It is described according to the audio frequency parameter, generate the brightness control parameter of the vehicle-mounted range lamp, comprising:
According to the spectrum sequence, the brightness control parameter of the vehicle-mounted range lamp is generated.
Further, described according to the spectrum sequence, generate the brightness control parameter of the vehicle-mounted range lamp, comprising:
By in the spectrum sequence, former and later two frequency spectrum datas successively subtract each other, and obtain one group of spectrum difference;
Based on the spectrum difference, the brightness control parameter of the vehicle-mounted range lamp is generated.
The present invention also provides a kind of control devices of vehicle-mounted atmosphere lamp, comprising:
Acquiring unit, for obtaining the state parameter of voice applications on mobile unit;
Generation unit, for generating the control parameter of vehicle-mounted atmosphere lamp according to the state parameter;
Control unit controls the color and/or brightness of the vehicle-mounted atmosphere lamp for being based on the control parameter.
The present invention also provides a kind of computer storage mediums, which is characterized in that the computer storage medium is stored with Computer executable instructions;After the computer executable instructions are performed, above-described vehicle-mounted atmosphere lamp can be realized Control method.
The present invention also provides a kind of vehicle-mounted atmosphere lamps, comprising:
Atmosphere lamp;
The control equipment of vehicle-mounted atmosphere lamp, for realizing the control method of above-described vehicle-mounted atmosphere lamp.
Control method and device, storage medium and the vehicle-mounted atmosphere lamp of vehicle-mounted atmosphere lamp provided by the invention obtain vehicle-mounted The state parameter of voice applications in equipment;According to the state parameter, the control parameter of vehicle-mounted atmosphere lamp is generated;Based on the control Parameter processed controls the color and/or brightness of the vehicle-mounted atmosphere lamp.The present invention obtains the state of the voice applications on mobile unit Parameter generates control parameter, is controlled by control parameter the color of vehicle-mounted atmosphere lamp and/or brightness.Foundation of the present invention The state of voice applications on mobile unit, realizes the automatic control to vehicle-mounted atmosphere lamp;It is controlled according to the state of voice applications Vehicle-mounted atmosphere lamp is made, the sound atmosphere of audio output construction is realized, the consistency for the lighting atmosphere built with vehicle-mounted atmosphere lamp With uniformity and harmonious property, reduce because atmosphere caused by sound atmosphere and lighting atmosphere are inconsistent is torn, and is further led The user of cause experiences the phenomenon of difference, and the user experience is improved.
Detailed description of the invention
Fig. 1 is a kind of flow diagram of the control method of vehicle-mounted atmosphere lamp provided in an embodiment of the present invention;
Fig. 2 is a kind of control device composed structure schematic diagram of vehicle-mounted atmosphere lamp provided in an embodiment of the present invention;
Fig. 3 is a kind of composed structure schematic diagram of vehicle-mounted atmosphere lamp provided in an embodiment of the present invention;
Fig. 4 is the flow diagram of the control method of the vehicle-mounted atmosphere lamp of another kind provided in an embodiment of the present invention.
Specific embodiment
In various embodiments of the present invention, the state parameter for obtaining the voice applications on mobile unit generates control ginseng Number, controls the color of vehicle-mounted atmosphere lamp and/or brightness by control parameter.For purpose, the skill for making the embodiment of the present invention Art scheme and advantage are more clearly understood, and the embodiment of the present invention is described in detail below in conjunction with attached drawing.
Fig. 1 is a kind of flow diagram of the control method of vehicle-mounted atmosphere lamp provided in an embodiment of the present invention, such as Fig. 1 institute Show, the control method of the vehicle-mounted atmosphere lamp the following steps are included:
Step 101: obtaining the state parameter of voice applications on mobile unit;
Step 102: according to the state parameter, generating the control parameter of vehicle-mounted atmosphere lamp;
Step 103: being based on the control parameter, control the color and/or brightness of the vehicle-mounted atmosphere lamp.
Atmosphere lamp in the present invention has the function of the brightness that changes colour and change, and should use has the function of to change colour and change brightness Lamp, such as: with colour change function and change brightness function LED light or cold-cathode lamp, LED light by control red, green, blue three The color of primary-color LED array exports, and blends most of color in nature;LED light can also pass through the method for pulsewidth modulation Change the pulse duty factor of LED drive current to realize the brightness control to LED light.
Voice applications are in the equipment such as vehicle audio or vehicle-mounted radio, for playing the application of audio.Voice applications are broadcast The audio put can be music, cross-talk, broadcast program etc., for example, the voice applications can include: dedicated for the sound of music Happy application may also include the broadcasted application or radio station application in broadcasting station.
In some embodiments, the state parameter of voice applications is the state letter that voice applications are shown in use Breath, such as: the spectrum information of the currently playing audio of image information, voice applications for the application interface that voice applications are currently shown, Amplitude information, classification information of the currently playing audio of voice applications of the currently playing audio of voice applications etc..
The control parameter is the parameter that controllable atmosphere lamp is shown, such as: color control parameter, the atmosphere lamp of atmosphere lamp Brightness control parameter, the lighting time control parameter of atmosphere lamp, duration control parameter etc. of turning on light of atmosphere lamp.
In further embodiments, the state parameter of the voice applications further include: instruction voice applications whether start and/ Or whether it is in the status information of broadcast state.Indicate whether voice applications start and/or whether be in the state of broadcast state Information can be used for generating the control parameter for controlling the vehicle-mounted atmosphere lamp unlatching and/or closing.
Further, the state parameter for obtaining voice applications on mobile unit, comprising:
Obtain the image information for the application interface that voice applications are currently shown on mobile unit;
It is described according to the state parameter, generate the control parameter of vehicle-mounted atmosphere lamp, comprising:
According to described image information, color control parameter is determined;Wherein, the color control parameter, it is described for controlling The color of vehicle-mounted atmosphere lamp.
It can be shown when voice applications play different audios on mobile unit, on the application interface of voice applications different Image.Such as: when on mobile unit voice applications play be music album when, can show this on the application interface of voice applications The cover image of music album;When on mobile unit voice applications play be cross-talk album when, the application interface of voice applications On can show the cover image of the cross-talk album;When on mobile unit voice applications play be broadcast program when, voice applications Application interface on can show the corresponding image of the broadcast program.
According to the image shown on the application interface of voice applications, color control parameter is determined.Color control parameter can be with The relevant colors that vehicle-mounted atmosphere lamp shows above-mentioned image are controlled, such as: certain certain bits in a certain particular color, image in image Corresponding color of the pixel set etc..
Optionally, according to face of the maximum color of color area as light in the theme color of album cover or image Color, alternatively, selecting the color of most brilliant in colors to make there are a variety of theme colors or there are when the size approximation of multiple color For the color of light.
Further, described according to described image information, determine color control parameter, comprising:
The number of pixels of various colors in described image is counted, and generates the face of characterization color and number of pixels corresponding relationship Color Histogram;
Based on the color histogram, the color control parameter is determined.
Color histogram is used by many image processing systems.Color histogram in the present invention characterizes color and picture Prime number purpose corresponding relationship can determine different color ratio shared in entire image according to the color histogram.
Optionally, judge whether described image is bitmap format, if not bitmap format, described image is converted into position Bitmap-format.Hexadecimal color code coding mode, RGB (Red Green Blue) coding mode etc. can be used in bitmap.
Further, described to be based on the color histogram, determine color control parameter, comprising:
According to the corresponding color of the longest longitudinal stripe of length in the color histogram, the color control ginseng is determined Number.
The length of longitudinal stripe in color histogram indicates that the distribution of color situation in image, the length of longitudinal stripe are got over The number of pixels of corresponding color is more in long representative image.The corresponding color of the longest longitudinal stripe of length in color histogram, The shared maximum color of ratio as in entire image.
Further, described to be based on the color histogram, determine color control parameter, comprising:
According to the color parameter value of color length and color of longitudinal stripe in the color histogram, determine selection according to According to parameter, wherein the color parameter value includes at least one of: hue value, intensity value and brightness value;
Based on the selection gist parameter, light color is selected;
According to the light color of selection, the color control parameter is generated.
Firstly, selecting the most X kind color of accounting in image according to the length of longitudinal stripe in color histogram, wherein X >1;Secondly, the hexadecimal color code or RGB color code of color in color histogram are converted to HSL (Hue Saturation Lightness) color code;Finally, again according to hue value, intensity value and the brightness value of color, from X kind face Color selects a kind of color, the display color as lamp.It specifically, can be respectively to hue value, intensity value and brightness value point Other setting range.Color outside the setting range of hue value, intensity value and brightness value is not as light color, alternatively, from X kind A kind of color is selected in color, as the display color of lamp, the corresponding hue value of the color, intensity value and brightness value exist In the setting range of the hue value, intensity value and brightness value.
The setting range of hue value, intensity value and brightness value can be set according to actual demand.Such as: hue value generation The color gamut that table human eye can perceive can determine that hue value is corresponding according to the color parameter of atmosphere lamp and the hobby of user and set Determine range;Saturation degree describes the variation of color purity under identical form and aspect, lightness, and numerical value is bigger, and the grey in color is fewer, face Color is more bright-coloured, can set the threshold values of saturation degree, lower than the threshold values color not as lamp color, to be made with compared with chromatic colour For the color of lamp;Brightness can control the light and shade variation of color, and numerical value is smaller, and color is darker, and closer to black, numerical value is got over Greatly, color is brighter, closer to white, it may be determined that the minimum threshold values of brightness and maximum threshold values select minimum threshold values and maximum Display color of the color as lamp between threshold values, to choose the color of suitable brightness as the color of lamp.
In some embodiments, the preset range can be to be set according to the light emitting properties of vehicle-mounted atmosphere lamp, for example, vehicle It carries atmosphere lamp to be only capable of issuing the light of predetermined kind of color, then can directly be set at this time according to the light emitting properties of vehicle-mounted atmosphere etc. pre- Determine range.
Further, described according to described image information, determine color control parameter, comprising:
Described image is down-sampled, after acquisition is down-sampled image;
According to it is described it is down-sampled after image, determine the color control parameter.
The down-sampled size with downscaled images file reduces calculation amount and reduces the effect of memory used.
Further, the state parameter for obtaining voice applications on mobile unit, comprising:
Obtain the audio frequency parameter of the currently playing audio of voice applications on the mobile unit;
It is described according to the state parameter, generate the control parameter of vehicle-mounted atmosphere lamp, comprising:
According to the audio frequency parameter, the brightness control parameter of the vehicle-mounted range lamp is generated, wherein the brightness control ginseng Count the brightness for controlling the vehicle-mounted atmosphere lamp.
Audio data can be obtained by following two mode: being acquired by audio sampling device, audio sampling device It include: microphone, microphone etc.;The voice applications on mobile unit, the control of vehicle-mounted atmosphere lamp and voice applications can also be passed through Equipment can be the same equipment, which can directly read the voice applications out of voice applications memory headroom Status information for example, directly directly reading audio data from memory, rather than is acquired by particular device (for example, microphone) The audio data or status information can be just obtained, to realize the information sharing inside control equipment, simplifies audio data It obtains.
Audio frequency parameter can be the acoustic characteristic of the audios such as audio frequency parameter, audio amplitude parameter, audio tamber parameter Parameter.
Further, the audio frequency parameter for obtaining the currently playing audio of voice applications on the mobile unit, comprising:
Obtain the spectrum sequence of the currently playing audio of voice applications on the mobile unit;
It is described according to the audio frequency parameter, generate the brightness control parameter of the vehicle-mounted range lamp, comprising:
According to the spectrum sequence, the brightness control parameter of the vehicle-mounted range lamp is generated.
The sampling period for determining spectrum sequence carries out the frequency spectrum data of currently playing audio according to the sampling period Acquisition, and then obtain the spectrum sequence of currently playing audio.Sampling period can set according to actual needs.
Further, described according to the spectrum sequence, generate the brightness control parameter of the vehicle-mounted range lamp, comprising:
By in the spectrum sequence, former and later two frequency spectrum datas successively subtract each other, and obtain one group of spectrum difference;
Based on the spectrum difference, the brightness control parameter of the vehicle-mounted range lamp is generated.
Can be by one group of spectrum difference, the absolute value of all spectrum differences is added, and it is corresponding to obtain this group of spectrum difference Spectrum amplitude.The constraint relationship between spectrum amplitude and the brightness control parameter of lamp is established, and obtains lamp according to the constraint relationship Brightness control parameter.Above-mentioned the constraint relationship can be functional relation etc..
The a reference value that the brightness of lamp can first be set, when being played without audio, lamp with a reference value display brightness of the brightness, Establish the corresponding relationship between spectrum difference and the luminance delta of lamp, when having audio broadcasting, the brightness of lamp by brightness benchmark Value is added to obtain with the changing value of brightness, and then the luminance delta based on spectrum difference control lamp;Spectrum difference can also be established With the corresponding relationship of the brightness of lamp, and then the brightness of lamp is directly determined based on spectrum difference.Light is realized by the above method Brightness automatic regular movements with the broadcasting of audio.
For example, initial time user manually adjust or voice by way of can set vehicle-mounted atmosphere lamp this opening Brightness, the brightness can be used as a reference value, be determined the frequency of the audio at moment by manual or phonetic order in vehicle-mounted atmosphere lamp Spectrum is as reference spectral corresponding with a reference value.It is subsequent, since audio plays continuity in the time domain, according to adjacent Spectrum difference between frequency spectrum is substantially equivalent to spectrum difference of each moment relative to reference spectral, utilizes this frequency Spectral difference value can dynamically control the variable quantity of brightness.
Optionally, described according to the spectrum sequence, generate the brightness control parameter of the vehicle-mounted range lamp, comprising:
Based on M period, the spectrum sequence is divided into M sub- spectrum sequences, wherein M > 1;
Determine the corresponding M sub- mean frequency value of the sub- spectrum sequence of the M;
Based on the M sub- mean frequency values, the brightness control parameter of the vehicle-mounted range lamp is generated, wherein the brightness Control parameter is for controlling brightness of the vehicle-mounted atmosphere lamp within the period.
The constraint relationship between sub- mean frequency value and the brightness control parameter of lamp is established, specifically, sub- mean frequency value is bigger, The brighter display of the corresponding lamp of brightness control parameter of lamp;Sub- mean frequency value is smaller, the corresponding lamp of brightness control parameter of lamp Brightness is darker.When audio is louder and more sonorous, light can brighten;When audio is relatively releived, light can be dimmed, and then realizes light Brightness automatic regular movements with the broadcasting of audio.
Optionally, the audio frequency parameter for obtaining the currently playing audio of voice applications on the mobile unit, comprising:
Obtain the amplitude sequence of the currently playing audio of voice applications on the mobile unit;
It is described according to the audio frequency parameter, generate the brightness control parameter of the vehicle-mounted range lamp, comprising:
According to the amplitude sequence, the brightness control parameter of the vehicle-mounted range lamp is generated.
Optionally, described according to the amplitude sequence, generate the brightness control parameter of the vehicle-mounted range lamp, comprising:
Based on N number of period, the spectrum sequence is divided into N number of sub- amplitude sequence, wherein N > 1;
Determine the corresponding N number of sub- amplitude mean value of N number of sub- amplitude sequence;
Based on N number of sub- amplitude mean value, the brightness control parameter of the vehicle-mounted range lamp is generated, wherein the brightness Control parameter is for controlling brightness of the vehicle-mounted atmosphere lamp within the period.
The constraint relationship between sub- amplitude mean value and the brightness control parameter of lamp is established, specifically, sub- amplitude mean value is bigger, The brighter display of the corresponding lamp of brightness control parameter of lamp;Sub- amplitude mean value is smaller, the corresponding lamp of brightness control parameter of lamp Brightness is darker.When the amplitude ratio of audio is larger, light can brighten;The Amplitude Comparison hour of audio, light can be dimmed, and then realize Brightness automatic regular movements with the broadcasting of audio of light.
Fig. 2 is a kind of control device composed structure schematic diagram of vehicle-mounted atmosphere lamp provided in an embodiment of the present invention, comprising:
Acquiring unit 201, for obtaining the state parameter of voice applications on mobile unit;
Generation unit 202, for generating the control parameter of vehicle-mounted atmosphere lamp according to the state parameter;
Control unit 203 controls the color and/or brightness of the vehicle-mounted atmosphere lamp for being based on the control parameter.
Further, the acquiring unit 201, is specifically used for:
Obtain the image information for the application interface that voice applications are currently shown on mobile unit;
The generation unit 202, is specifically used for:
According to described image information, color control parameter is determined;Wherein, the color control parameter, it is described for controlling The color of vehicle-mounted atmosphere lamp.
Further, the generation unit 202, is also used to:
The number of pixels of various colors in described image is counted, and generates the face of characterization color and number of pixels corresponding relationship Color Histogram;
Based on the color histogram, the color control parameter is determined.
Further, the generation unit 202, is also used to:
According to the corresponding color of the longest longitudinal stripe of length in the color histogram, the color control ginseng is determined Number.
Further, the generation unit 202, is also used to:
According to the color parameter value of color length and color of longitudinal stripe in the color histogram, determine selection according to According to parameter, wherein the color parameter value includes at least one of: hue value, intensity value and brightness value;
Based on the selection gist parameter, light color is selected;
According to the light color of selection, the color control parameter is generated.
Further, the generation unit 202, is also used to:
Described image is down-sampled, after acquisition is down-sampled image;
According to it is described it is down-sampled after image, determine the color control parameter.
Further, the generation unit 202, is also used to:
Obtain the audio frequency parameter of the currently playing audio of voice applications on the mobile unit;
According to the audio frequency parameter, the brightness control parameter of the vehicle-mounted range lamp is generated, wherein the brightness control ginseng Count the brightness for controlling the vehicle-mounted atmosphere lamp.
Further, the generation unit 202, is also used to:
Obtain the spectrum sequence of the currently playing audio of voice applications on the mobile unit;
It is described according to the audio frequency parameter, generate the brightness control parameter of the vehicle-mounted range lamp, comprising:
According to the spectrum sequence, the brightness control parameter of the vehicle-mounted range lamp is generated.
Further, the generation unit 202, is also used to:
By in the spectrum sequence, former and later two frequency spectrum datas successively subtract each other, and obtain one group of spectrum difference;
Based on the spectrum difference, the brightness control parameter of the vehicle-mounted range lamp is generated.
The present invention also provides a kind of computer storage mediums, which is characterized in that the computer storage medium is stored with Computer executable instructions;After the computer executable instructions are performed, above-described vehicle-mounted atmosphere lamp can be realized Control method.
Fig. 3 is a kind of composed structure schematic diagram of vehicle-mounted atmosphere lamp provided in an embodiment of the present invention, comprising:
Atmosphere lamp 301;
The control equipment 302 of vehicle-mounted atmosphere lamp, for realizing the control method of above-described vehicle-mounted atmosphere lamp.
Fig. 4 is the flow diagram of the control method of the vehicle-mounted atmosphere lamp of another kind provided in an embodiment of the present invention, such as Fig. 4 institute Show, the described method comprises the following steps:
Step 401: atmosphere lamp display color is obtained by obtained music album picture, the method is as follows:
When playing music, album cover picture is shown on vehicle device screen music card;
Cover picture is extracted, and picture is reduced, while guaranteeing that mass effect is constant, calculation amount can be reduced in this way and is subtracted The use of few memory;
The picture of diminution all is converted to bitmap format, the pixel data on picture is being stored in an integer array;
There is small arrive to sort greatly the integer array for storing image data, is equivalent to pile up the same color of a picture Together, in the accounting numerical value for showing how many kinds of color and each color with color histogram;
The RGB color code of the color obtained in color histogram is converted into HSL color code, wherein it is corresponding that H represents color Hue value, S represents the corresponding saturation degree of color, and L represents the corresponding brightness value of color, according to above-mentioned hue value, saturation degree and Brightness value selects color most gorgeous in the highest color of picture accounting or picture.
Step 402: lamplight brightness regular movements is controlled by music rhythm, the method is as follows:
One in player group of group frequency spectrum data is obtained first to be put into array;
Frequency spectrum data in each group of frequency spectrum array is successively compared, is added and subtracted by one group of size of data comparison Obtain a numerical value;
The numerical value that comparison obtains is converted and is arranged according to the brightness degree waited, the brightness of such light will be with this music Melody regular movements.
The foregoing is only a preferred embodiment of the present invention, is not intended to limit the scope of the present invention.

Claims (12)

1. a kind of control method of vehicle-mounted atmosphere lamp, which is characterized in that the described method includes:
Obtain the state parameter of voice applications on mobile unit;
According to the state parameter, the control parameter of vehicle-mounted atmosphere lamp is generated;
Based on the control parameter, the color and/or brightness of the vehicle-mounted atmosphere lamp are controlled.
2. the method according to claim 1, wherein
The state parameter of voice applications on the acquisition mobile unit, comprising:
Obtain the image information for the application interface that voice applications are currently shown on mobile unit;
It is described according to the state parameter, generate the control parameter of vehicle-mounted atmosphere lamp, comprising:
According to described image information, color control parameter is determined;Wherein, the color control parameter, it is described vehicle-mounted for controlling The color of atmosphere lamp.
3. according to the method described in claim 2, it is characterized in that,
It is described according to described image information, determine color control parameter, comprising:
The number of pixels of various colors in described image is counted, and the color for generating characterization color and number of pixels corresponding relationship is straight Fang Tu;
Based on the color histogram, the color control parameter is determined.
4. according to the method described in claim 3, it is characterized in that,
It is described to be based on the color histogram, determine color control parameter, comprising:
According to the corresponding color of the longest longitudinal stripe of length in the color histogram, the color control parameter is determined.
5. according to the method described in claim 3, it is characterized in that,
It is described to be based on the color histogram, determine color control parameter, comprising:
According to the color parameter value of color length and color of longitudinal stripe in the color histogram, determine that selection gist is joined Number, wherein the color parameter value includes at least one of: hue value, intensity value and brightness value;
Based on the selection gist parameter, light color is selected;
According to the light color of selection, the color control parameter is generated.
6. according to the method described in claim 2, it is characterized in that,
It is described according to described image information, determine color control parameter, comprising:
Described image is down-sampled, after acquisition is down-sampled image;
According to it is described it is down-sampled after image, determine the color control parameter.
7. method according to any one of claims 1 to 6, which is characterized in that
The state parameter of voice applications on the acquisition mobile unit, comprising:
Obtain the audio frequency parameter of the currently playing audio of voice applications on the mobile unit;
It is described according to the state parameter, generate the control parameter of vehicle-mounted atmosphere lamp, comprising:
According to the audio frequency parameter, the brightness control parameter of the vehicle-mounted range lamp is generated, wherein the brightness control parameter is used In the brightness for controlling the vehicle-mounted atmosphere lamp.
8. the method according to the description of claim 7 is characterized in that
The audio frequency parameter for obtaining the currently playing audio of voice applications on the mobile unit, comprising:
Obtain the spectrum sequence of the currently playing audio of voice applications on the mobile unit;
It is described according to the audio frequency parameter, generate the brightness control parameter of the vehicle-mounted range lamp, comprising:
According to the spectrum sequence, the brightness control parameter of the vehicle-mounted range lamp is generated.
9. according to the method described in claim 8, it is characterized in that,
It is described according to the spectrum sequence, generate the brightness control parameter of the vehicle-mounted range lamp, comprising:
By in the spectrum sequence, former and later two frequency spectrum datas successively subtract each other, and obtain one group of spectrum difference;
Based on the spectrum difference, the brightness control parameter of the vehicle-mounted range lamp is generated.
10. a kind of control device of vehicle-mounted atmosphere lamp, which is characterized in that described device includes:
Acquiring unit, for obtaining the state parameter of voice applications on mobile unit;
Generation unit, for generating the control parameter of vehicle-mounted atmosphere lamp according to the state parameter;
Control unit controls the color and/or brightness of the vehicle-mounted atmosphere lamp for being based on the control parameter.
11. a kind of computer storage medium, which is characterized in that the computer storage medium is stored with the executable finger of computer It enables;After the computer executable instructions are performed, the method that any one of claim 1 to 9 provides can be realized.
12. a kind of vehicle-mounted atmosphere lamp, which is characterized in that the vehicle-mounted atmosphere lamp includes:
Atmosphere lamp;
The control equipment of vehicle-mounted atmosphere lamp, the method provided for realizing any one of claim 1 to 9.
CN201811498019.8A 2018-12-07 2018-12-07 Control method and device, storage medium and the vehicle-mounted atmosphere lamp of vehicle-mounted atmosphere lamp Pending CN109743819A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811498019.8A CN109743819A (en) 2018-12-07 2018-12-07 Control method and device, storage medium and the vehicle-mounted atmosphere lamp of vehicle-mounted atmosphere lamp

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811498019.8A CN109743819A (en) 2018-12-07 2018-12-07 Control method and device, storage medium and the vehicle-mounted atmosphere lamp of vehicle-mounted atmosphere lamp

Publications (1)

Publication Number Publication Date
CN109743819A true CN109743819A (en) 2019-05-10

Family

ID=66358663

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811498019.8A Pending CN109743819A (en) 2018-12-07 2018-12-07 Control method and device, storage medium and the vehicle-mounted atmosphere lamp of vehicle-mounted atmosphere lamp

Country Status (1)

Country Link
CN (1) CN109743819A (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112124231A (en) * 2020-09-29 2020-12-25 广州小鹏汽车科技有限公司 Vehicle interaction method and device
CN112954854A (en) * 2021-03-09 2021-06-11 生迪智慧科技有限公司 Control method, device and equipment for ambient light and ambient light system
CN113163263A (en) * 2021-04-30 2021-07-23 广州酷狗计算机科技有限公司 Method, device and storage medium for controlling media resource by vehicle-mounted equipment
CN113177135A (en) * 2021-04-30 2021-07-27 广州酷狗计算机科技有限公司 Method and device for playing audio by vehicle-mounted equipment, storage medium and electronic equipment
CN113613370A (en) * 2021-08-30 2021-11-05 江苏惠通集团有限责任公司 Atmosphere lamp control method and device, computer readable storage medium and terminal
CN113794938A (en) * 2021-09-22 2021-12-14 深圳维盟网络技术有限公司 Atmosphere lamp illumination regulation and control method for enhancing video playing and game playing
CN114051299A (en) * 2021-10-25 2022-02-15 华人运通(上海)云计算科技有限公司 Control method and device of vehicle-mounted atmosphere lamp, storage medium and vehicle
CN114693809A (en) * 2022-02-25 2022-07-01 智己汽车科技有限公司 Method and equipment for switching automotive electronic interior style themes
CN117241446A (en) * 2023-11-13 2023-12-15 博泰车联网(南京)有限公司 Vehicle atmosphere lamp control method, control device, electronic equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20120020449A (en) * 2010-08-30 2012-03-08 주식회사 만도 Apparatus for controlling head-light by image analysis and method for controlling head-lihgt on/off of the same
CN103813583A (en) * 2012-11-09 2014-05-21 株式会社东芝 Control apparatus and illumination apparatus
CN105704864A (en) * 2016-04-13 2016-06-22 杭州聪普智能科技有限公司 Atmosphere illuminating system and method based on music contents
CN105813264A (en) * 2016-04-21 2016-07-27 鹤壁市华美电气有限公司 Rhythm atmosphere lamp
CN106170170A (en) * 2016-08-25 2016-11-30 广东欧珀移动通信有限公司 The control method of atmosphere lamp and device
CN107889323A (en) * 2017-09-27 2018-04-06 杭州古北电子科技有限公司 The control method and device that a kind of light is shown

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20120020449A (en) * 2010-08-30 2012-03-08 주식회사 만도 Apparatus for controlling head-light by image analysis and method for controlling head-lihgt on/off of the same
CN103813583A (en) * 2012-11-09 2014-05-21 株式会社东芝 Control apparatus and illumination apparatus
CN105704864A (en) * 2016-04-13 2016-06-22 杭州聪普智能科技有限公司 Atmosphere illuminating system and method based on music contents
CN105813264A (en) * 2016-04-21 2016-07-27 鹤壁市华美电气有限公司 Rhythm atmosphere lamp
CN106170170A (en) * 2016-08-25 2016-11-30 广东欧珀移动通信有限公司 The control method of atmosphere lamp and device
CN107889323A (en) * 2017-09-27 2018-04-06 杭州古北电子科技有限公司 The control method and device that a kind of light is shown

Cited By (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022068115A1 (en) * 2020-09-29 2022-04-07 广州橙行智动汽车科技有限公司 Vehicle interaction method and device
CN112124231A (en) * 2020-09-29 2020-12-25 广州小鹏汽车科技有限公司 Vehicle interaction method and device
CN112954854A (en) * 2021-03-09 2021-06-11 生迪智慧科技有限公司 Control method, device and equipment for ambient light and ambient light system
CN112954854B (en) * 2021-03-09 2023-04-07 生迪智慧科技有限公司 Control method, device and equipment for ambient light and ambient light system
CN113177135A (en) * 2021-04-30 2021-07-27 广州酷狗计算机科技有限公司 Method and device for playing audio by vehicle-mounted equipment, storage medium and electronic equipment
CN113163263A (en) * 2021-04-30 2021-07-23 广州酷狗计算机科技有限公司 Method, device and storage medium for controlling media resource by vehicle-mounted equipment
CN113163263B (en) * 2021-04-30 2023-07-28 广州酷狗计算机科技有限公司 Method, device and storage medium for controlling media resources by vehicle-mounted equipment
CN113613370A (en) * 2021-08-30 2021-11-05 江苏惠通集团有限责任公司 Atmosphere lamp control method and device, computer readable storage medium and terminal
CN113613370B (en) * 2021-08-30 2024-03-19 江苏惠通集团有限责任公司 Atmosphere lamp control method and device, computer readable storage medium and terminal
CN113794938A (en) * 2021-09-22 2021-12-14 深圳维盟网络技术有限公司 Atmosphere lamp illumination regulation and control method for enhancing video playing and game playing
CN113794938B (en) * 2021-09-22 2024-03-26 深圳维盟网络技术有限公司 Atmosphere lamp irradiation regulation and control method for enhancing video playing and game playing
CN114051299A (en) * 2021-10-25 2022-02-15 华人运通(上海)云计算科技有限公司 Control method and device of vehicle-mounted atmosphere lamp, storage medium and vehicle
CN114051299B (en) * 2021-10-25 2024-04-12 华人运通(上海)云计算科技有限公司 Control method and device of vehicle-mounted atmosphere lamp, storage medium and vehicle
CN114693809A (en) * 2022-02-25 2022-07-01 智己汽车科技有限公司 Method and equipment for switching automotive electronic interior style themes
CN114693809B (en) * 2022-02-25 2024-07-09 智己汽车科技有限公司 Method and device for switching automobile electronic interior style theme
CN117241446B (en) * 2023-11-13 2024-02-27 博泰车联网(南京)有限公司 Vehicle atmosphere lamp control method, control device, electronic equipment and storage medium
CN117241446A (en) * 2023-11-13 2023-12-15 博泰车联网(南京)有限公司 Vehicle atmosphere lamp control method, control device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN109743819A (en) Control method and device, storage medium and the vehicle-mounted atmosphere lamp of vehicle-mounted atmosphere lamp
US10902567B2 (en) Handling multiple HDR image sources
JP6596125B2 (en) Method and apparatus for creating a code mapping function for encoding of HDR images, and method and apparatus for use of such encoded images
CN109064433B (en) Improved HDR image encoding and decoding method and apparatus
JP4870665B2 (en) Dominant color extraction using perceptual rules to generate ambient light derived from video content
KR101170408B1 (en) Dominant color extraction for ambient light derived from video content mapped through unrendered color space
EP1704729B1 (en) Ambient light script command encoding
ES2744795T3 (en) Methods and apparatus for encoding HDR images, and methods and apparatus for using such encoded images
KR101044709B1 (en) Method for extracting and processing video content encoded in a rendered color space to be emulated by an ambient light source
KR101117591B1 (en) Flicker-free adaptive thresholding for ambient light derived from video content mapped through unrendered color space
CN105933762B (en) A kind of inter-linked controlling method and device of smart home
CN111699507B (en) Luminous brightness processor and method, high dynamic range video encoder, decoder and encoding system
JP2008505384A (en) Ambient light generation from broadcasts derived from video content and influenced by perception rules and user preferences
KR20060112677A (en) Ambient light derived by subsampling video content and mapped through unrendered color space
WO2006112170A1 (en) Liquid crystal display device
WO2006059573A1 (en) Color adjusting device and method
CN105472807B (en) The music light efficiency synchronous method and terminal of terminal
CN100559850C (en) Be used for the method that mass-tone is extracted
JP6831389B2 (en) Processing of multiple HDR image sources
CN103002293B (en) Projector and projection method
CN101684913B (en) Device of luminescent lamp group controlled by music
CN103456279B (en) Mobile terminal and its color display
CN115767844A (en) Lamp effect control method and related equipment thereof
CN115460739A (en) Method and device for adjusting atmosphere lamp

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190510