Vehicle-mounted atmosphere lamp control method and device, electronic equipment and storage medium

By extracting and analyzing the main color tone from the central control display screen, the ambient light control method dynamically adjusts to enhance user immersion and experience without complex hardware.

CN119172905APending Publication Date: 2024-12-20CHANGSUO SOFTWARE TECH SHANGHAI CO LTD
View PDF 0 Cites 3 Cited by

Patent Information

Application Number
CN202411585268.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-07
Publication Date
2024-12-20

AI Technical Summary

Technical Problem

Current vehicle ambient light control methods lack the ability to dynamically respond to the content displayed on the central control display screen, resulting in reduced user immersion and overall experience.

Method used

A method and device that extract and cluster analyze the ambient light control device, which acquires the display image of the central control display screen, determines the main color tone, and adjusts the ambient light color accordingly.

Benefits of technology

Enhances user immersion by dynamically matching ambient light colors with the display content, maintaining high adaptability and stability across various driving environments without requiring complex hardware adjustments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119172905A_ABST
    Figure CN119172905A_ABST
Patent Text Reader

Abstract

The invention discloses a vehicle-mounted atmosphere lamp control method and device, electronic equipment and a storage medium, and the method comprises the steps: obtaining a display image of a central control display screen, and extracting the color information of the display image; according to the color information, a preset number of color ranges are divided; counting the number of pixels included in each color range, and determining the color range with the maximum number of pixels as a dominant hue; and controlling the light color of the vehicle-mounted atmosphere lamp to be displayed as a color value corresponding to the dominant hue. Thus, color information extraction and clustering analysis are carried out on the display image of the central control display screen, a certain dominant hue is determined, then the lamplight color of the vehicle-mounted atmosphere lamp is controlled to be displayed as the color value corresponding to the dominant hue, the lamplight color of the vehicle-mounted atmosphere lamp is dynamically adjusted in real time in combination with the display image of the central control display screen, interactivity is high, and user experience is improved. In addition, the implementation process does not need to depend on complex hardware, tedious hardware adjustment is avoided, high adaptability is shown in various driving environments, and stability is high.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of vehicles, and specifically relates to a method, device, electronic device and storage medium for controlling vehicle-mounted ambient lights. Background Art

[0002] With the continuous evolution of automobile technology, in-car entertainment systems have played an increasingly important role in improving driving experience and riding comfort. Among them, in-car ambient lights, as innovative in-car accessories, have gradually become part of improving the overall riding experience. The adjustment effect of in-car ambient lights not only affects the driver's mood and attention, but also directly affects the passengers' riding experience. In this context, in-car ambient lights must not only be attractive in design, but also have a high level of intelligence.

[0003] At present, the lighting control of vehicle ambient lights is mainly carried out through preset color and brightness scenes. For example, corresponding settings can be made according to different driving modes, or the lights can be flashed and changed according to the rhythm and intensity changes of the vehicle audio.

[0004] However, this in-vehicle ambient light control method relies on fixed preset scenes or simple audio spectrum analysis, lacks the ability to dynamically respond to the content displayed on the central control display screen, and cannot provide lighting effects synchronized with the content displayed on the central control display screen, thereby reducing the user's immersion and overall experience. For example, when the owner is playing games, watching videos, or processing other audio-visual content on the in-vehicle central control display screen, this static in-vehicle ambient light control method cannot achieve real-time interaction with the displayed content. Summary of the invention

[0005] The purpose of the embodiments of the present application is to provide a vehicle-mounted atmosphere light control method, device, electronic device and storage medium, which can solve the problem that the current vehicle-mounted atmosphere light control method lacks the ability to dynamically respond to the content displayed on the central control display screen and cannot provide lighting effects synchronized with it, thereby reducing the user's immersion and overall experience.

[0006] In a first aspect, an embodiment of the present application provides a method for controlling a vehicle ambient light, comprising:

[0007] Acquire a display image of the central control display screen, and extract color information of the display image;

[0008] Dividing a preset number of color ranges according to the color information;

[0009] Counting the number of pixels included in each color range, and determining the color range with the largest number of pixels as the main color tone;

[0010] The light color of the vehicle ambient light is controlled to be displayed as the color value corresponding to the main color tone.

[0011] In a second aspect, an embodiment of the present application provides a vehicle-mounted ambient light control device, comprising:

[0012] An acquisition module, used to acquire a display image of the central control display screen and extract color information of the display image;

[0013] A division module, used for dividing the color information into a preset number of color ranges;

[0014] An analysis module, used for counting the number of pixels included in each color range, and determining the color range with the largest number of pixels as the main color tone;

[0015] The control module is used to control the light color of the vehicle ambient light to display the color value corresponding to the main color tone.

[0016] In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the program or instructions are executed by the processor, the steps of the method described in the second aspect are implemented.

[0017] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the method described in the second aspect are implemented.

[0018] In a fifth aspect, an embodiment of the present application provides a chip, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the method described in the second aspect.

[0019] In a sixth aspect, an embodiment of the present application provides a computer program product, which is stored in a storage medium and is executed by at least one processor to implement the method described in the second aspect.

[0020] In the solution provided in the embodiment of the present application, the display image of the central control display screen is obtained, and the color information of the display image is extracted; according to the color information, a preset number of color ranges are divided; the number of pixels included in each color range is counted, and the color range with the largest number of pixels is determined as the main color tone; the light color of the vehicle ambient light is controlled to display the color value corresponding to the main color tone.

[0021] In this way, by extracting color information and performing cluster analysis on the display image of the central control display screen, a certain main color tone is determined, and then the light color of the vehicle ambient light is controlled to display the color value corresponding to the main color tone, so that the light color of the vehicle ambient light can be adjusted dynamically in real time in combination with the display image of the central control display screen. The interactivity is strong, and the implementation process does not require reliance on complex hardware, thus avoiding tedious hardware adjustments. It shows high adaptability and high stability in a variety of driving environments. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] Figure 1 is a flow chart of a method for controlling a vehicle ambient light according to an exemplary embodiment;

[0023] Figure 2 is a block diagram of a vehicle-mounted ambient light control device according to an exemplary embodiment;

[0024] Figure 3 is a block diagram of an electronic device according to an exemplary embodiment;

[0025] Figure 4 The figure is a schematic diagram showing the hardware structure of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION

[0026] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the present application belong to the scope of protection of this application.

[0027] The terms "first", "second", etc. in the specification and claims of this application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.

[0028] The vehicle-mounted ambient light control method provided by the embodiment of the present application is described in detail below through specific embodiments and their application scenarios in conjunction with the accompanying drawings.

[0029] Figure 1 FIG. 1 is a flow chart of a method for controlling a vehicle ambient light according to an exemplary embodiment, comprising the following steps:

[0030] Step S11: Acquire the display image of the central control display screen and extract the color information of the display image.

[0031] In the related technologies, the vehicle ambient light control method usually relies on fixed preset scenes or simple audio spectrum analysis to control the lighting effects, and lacks the ability to dynamically respond to visual information, resulting in the lighting effects being unable to reflect changes in visual information in real time and poor interactivity, thereby reducing the user's sense of immersion and overall experience.

[0032] Based on this, the present application proposes a method for controlling vehicle ambient lights, which dynamically adjusts the vehicle ambient lights in real time by extracting and clustering information based on the image displayed on the central control display screen to solve the above problems.

[0033] In this step, the display image of the central control display screen needs to be obtained first, wherein the display image of the central control display screen is the screen content currently displayed by the central control display screen, which changes in real time with the change of the content displayed by the central control display screen. For example, when the user is watching a video, the display image is the video screen being played, and when the user is playing a game, the display image is the real-time game screen, and so on.

[0034] After acquiring the display image, the color information of the display image can be extracted for use in adjusting the color of the vehicle ambient light. The color information can be represented by different color spaces, such as RGB (red, green, and blue) color space, HSV (hue, saturation, and brightness) color space, CMYK (cyan, magenta, yellow, and black) color space, etc., without limitation.

[0035] In an embodiment of the present application, in order to reduce computational complexity and speed up processing, before performing cluster analysis on color information, the display image can be preprocessed first, including but not limited to scaling the display image to reduce the volume of image data, so that subsequent processing steps can be completed faster while maintaining the integrity of the color information as much as possible.

[0036] Step S12: Divide the color range into a preset number according to the color information.

[0037] In this step, the color information can first be divided into a preset number of different color ranges. The division of each color range can be defined based on the color space corresponding to the color information, depending on the needs of color analysis. The preset number is usually determined based on the accuracy requirements of image analysis. The higher the preset number, the higher the accuracy, but it may cause the colors to be too dispersed and difficult to determine the main color tone; the lower the preset number, the more important color information may be lost, which can be determined based on the application scenario and needs.

[0038] In one implementation, the color information includes the color value of each pixel corresponding to multiple color channels, and a preset number of color ranges are divided according to the color information, including:

[0039] According to the color information, a color histogram is constructed; the color histogram includes multiple dimensions, and each dimension corresponds to each color channel;

[0040] For the color histogram of each dimension, calculate the difference between the maximum and minimum values ​​of the included color values ​​as the corresponding color range;

[0041] Determine the largest color range as the target range;

[0042] Calculate the median value of the color values ​​in the target range, and divide the target range into two new color ranges according to the median value;

[0043] Return to the step of determining the largest color range as the target range until the number of obtained color ranges reaches the preset number.

[0044] That is to say, in this embodiment, the median cut algorithm can be used to implement cluster analysis of color information and extract the main color tone in the display image. The median cut algorithm is an algorithm commonly used for cluster analysis of color information. By recursively dividing the color information, the color information is clustered into a limited number of color ranges, and the main color tone of the display image is then identified.

[0045] Specifically, the implementation process of the median cut algorithm includes the following steps:

[0046] First, the color information of all pixels in the displayed image is statistically displayed to construct a color histogram. The horizontal axis of the color histogram represents the color value, and the vertical axis represents the number of pixels of a certain color value. The color information includes the color values ​​of each pixel corresponding to multiple color channels. Correspondingly, the color histogram includes multiple dimensions, each of which corresponds to each color channel. For example, if the color information corresponds to the three color channels of red (R), green (G) and blue (B), then the color histogram is a three-dimensional color histogram corresponding to the three color channels.

[0047] Then, the color range of each color channel is calculated, that is, the difference between the maximum and minimum color values ​​in the color histogram of each dimension. Continuing the above example, if the color information corresponds to the three color channels of red, green and blue, then the color range of each color channel can be expressed as:

[0048] R range =R max -R min

[0049] G range =G max -G min

[0050] B range =B max -B min

[0051] Among them, R max ,R min are the maximum and minimum values ​​of the red channel, G max ,G min are the maximum and minimum values ​​of the green channel, B max ,B min are the maximum and minimum values ​​of the blue channel, R range ,G range ,B range They represent the color range of the three color channels: red, green, and blue.

[0052] Afterwards, the largest color range is determined as the target range, the median value of the color values ​​of the target range is calculated, and the target range is divided into two new color ranges according to the median value, thereby realizing the cutting of the color range.

[0053] For example, if R range >G range And R range >B range , then cut the color range corresponding to the red channel; if G range >B range And G range >R range , then cut the color range corresponding to the green channel; if B range >G range And B range >R range , the color range corresponding to the blue channel is cut.

[0054] After determining the target range, calculate the median value of the target range, expressed as:

[0055]

[0056] Among them, C median is the median value, C max and C min are the maximum and minimum values ​​of the target channel respectively.

[0057] The target range is divided into two by calculating the median value of the target range, and recursively returns to determine the largest color range as a step of the target range until a preset number of color regions are obtained.

[0058] Step S13: Count the number of pixels included in each color range, and determine the color range with the largest number of pixels as the main color.

[0059] In this step, we first need to count the number of pixels included in each color range. It can be understood that the number of pixels included in each color range in an image usually reflects the relative importance or proportion of the color range in the image. Therefore, the color range with the largest number of pixels is determined as the main color tone, so that the main color tone reflects the most prominent or dominant color in the displayed image.

[0060] In this way, by clustering the color information of the image displayed on the central control display screen, the color tone that occupies the main position in the displayed image can be identified as the main color tone corresponding to the displayed image, which is conducive to better understanding the content and characteristics of the displayed image. For example, if the main body of the displayed image is a landscape, the main colors may be green and blue, and if the main body of the displayed image is a sunset, the main colors may be orange and red.

[0061] Furthermore, in subsequent steps, by controlling the light color of the vehicle ambient light based on the main color tone, the color scheme of the vehicle ambient light can be more matched with the display image of the central control display screen, achieving visual harmony and unity.

[0062] In one implementation, after counting the number of pixels included in each color range and determining the color range with the largest number of pixels as the main color, the following further includes:

[0063] For other color ranges except the main hue, if the number of pixels included in any other color range meets a preset condition, any other color range is determined as a vibrant hue.

[0064] That is to say, in the present application, in addition to determining the main color tone of the displayed image, one or more additional vibrant tones can also be determined. In subsequent steps, the light color of the vehicle-mounted ambient light can be controlled to display the color values ​​corresponding to the main color tone and the vibrant tones, so as to further enhance the visual effect of the ambient light.

[0065] Among them, the preset condition may mean that the proportion of pixels of vibrant hues is significantly higher than that of other color ranges, for example, the ratio of the number of pixels of vibrant hues to the number of pixels of the main hue exceeds 70%, or the number of pixels of vibrant hues exceeds a certain ratio of the total number of pixels of the displayed image, etc., without specific limitation.

[0066] In one implementation, dividing a preset number of color ranges according to color information includes:

[0067] Dividing the displayed image into a plurality of regions;

[0068] According to the color information in each area, each area is divided into a preset number of color ranges;

[0069] Count the number of pixels in each color range, and determine the color range with the largest number of pixels as the main color, including:

[0070] For each region, the number of pixels included in each corresponding color range is counted, and the color range with the largest number of pixels is determined as the main color tone of the region.

[0071] Specifically, in order to further enhance the user's sense of immersion, the displayed image can also be segmented into multiple regions, and each region can be divided into a preset number of color ranges based on the color information in each region. Then, for each region, the number of pixels included in each color range corresponding to the region is counted, and the color range with the largest number of pixels is determined as the main color of the region, thereby realizing cluster analysis of the color information of each region and extracting the main color of each region. The main colors of these different regions will be respectively applied to the light colors of different vehicle-mounted atmosphere lights, making the lighting effects richer and more delicate, especially in specific situations such as complex pictures or multi-scene switching, which will be more useful.

[0072] Step S14: Control the light color of the vehicle ambient light to display the color value corresponding to the main color tone.

[0073] In this step, after determining the main color tone, the main color tone can be sent to the controller of the vehicle ambient light, and the controller adjusts the light color of the vehicle ambient light according to the received main color tone, and controls the light color of the vehicle ambient light to display the color value corresponding to the main color tone. Since the processing of the displayed image is performed in real time, the light color of the vehicle ambient light is also updated in real time to match the main color tone of the current displayed image.

[0074] If the vehicle ambient light uses a color space or format different from the main color, the color value may need to be converted. For example, if the image processing obtains RGB values, and the vehicle ambient light uses hexadecimal color codes or a specific color representation method, a corresponding conversion is required.

[0075] In one implementation, when the main color tone is RGB color information, controlling the light color of the vehicle ambient light to display the color value corresponding to the main color tone includes:

[0076] Convert the main color tone into HSB color information to obtain first information; the first information includes a first brightness;

[0077] The value of the first brightness is adjusted to a second brightness to obtain second information; the second brightness is higher than the first brightness;

[0078] Convert the second information into RGB color information to obtain a color value corresponding to the main color tone;

[0079] The light color of the vehicle ambient light is controlled and displayed as a color value.

[0080] That is to say, when the main color tone is RGB color information, the main color tone needs to be converted into HSB color information first to obtain first information, wherein the first information includes a first brightness; then, the first brightness needs to be adjusted to obtain second information, and the second information is converted back to RGB color information to generate a final color value, thereby improving the display brightness of the light color.

[0081] For example, the formula for adjusting the value of the first brightness to the second brightness can be expressed as:

[0082] Badjusted=min(1.0,2×B)

[0083] Among them, B represents the first brightness, B adjusted Indicates the second brightness, and min indicates the minimum value.

[0084] This brightness adjustment method not only ensures the visual effect of color, but also avoids the inconsistency of the ambient light effect in different brightness environments, so that the vehicle ambient light always remains within an optimal brightness range, avoiding the main color tone being too dim when applied to the vehicle ambient light.

[0085] In one implementation, if the vitality tone is determined after the main tone is determined, then the light color of the vehicle ambient light is controlled to be displayed as the color value corresponding to the main tone, including:

[0086] The light color of the vehicle's ambient light is controlled to display the color values ​​corresponding to the main color and the vibrant color.

[0087] That is to say, the main tone and the vibrant tone can be used together for the light color of the vehicle atmosphere light to make the lighting effect richer and more delicate. For example, the vehicle atmosphere light can be divided into two parts according to a certain proportion, one part showing the color value corresponding to the main tone, and the other part showing the color value corresponding to the vibrant tone; or, according to the different positions of the vehicle atmosphere light, it can be set to correspond to the color value corresponding to the main tone or the color value corresponding to the vibrant tone, and so on, without specific limitation.

[0088] In one implementation, the vehicle ambient light control method further includes:

[0089] Acquire the audio signal in the car and convert the audio signal into a frequency domain signal;

[0090] Determine the lighting parameters of the vehicle ambient light based on the frequency domain signal;

[0091] Then, the color of the light that controls the vehicle's ambient light is displayed as the color value corresponding to the main color tone, including:

[0092] Based on the lighting parameters, the lighting color of the vehicle ambient light is controlled to display the color value corresponding to the main color tone.

[0093] That is to say, before controlling the vehicle ambient light, you can first obtain the audio signal in the car, then convert the audio signal into a frequency domain signal, and by analyzing the frequency changes of the vehicle audio signal, you can determine the lighting parameters of the vehicle ambient light based on the frequency domain signal.

[0094] In this way, the lighting parameters of the car's ambient light can be adjusted dynamically in real time in combination with the frequency changes of the audio signal in the car, so that the car's ambient light can synchronize with the rhythm of the audio signal in real time and change accordingly to enhance the user's immersive experience.

[0095] Among them, the fast Fourier transform can be used to obtain the energy distribution of the audio signal at each frequency, and the audio signal can be converted from the time domain to the frequency domain in order to analyze its frequency components. The calculation formula of the fast Fourier transform is as follows:

[0096]

[0097] Among them, X(k) is the frequency domain signal, x(n) is the time domain signal, N is the signal length, k is the frequency index, and j is the imaginary unit.

[0098] In one implementation, determining the lighting parameters of the vehicle ambient light according to the frequency domain signal includes:

[0099] Calculate the total energy value in each frequency band according to the frequency domain signals corresponding to the preset multiple frequency bands;

[0100] For each frequency band, the lighting parameters corresponding to the total energy value are determined based on a predefined mapping relationship.

[0101] That is to say, multiple frequency bands may be divided in advance according to the frequency, and then the total energy value in each frequency band may be calculated according to the frequency domain signal corresponding to each frequency band.

[0102] The calculation formula of the total energy value can be expressed as:

[0103]

[0104] Among them, E band It represents the total energy value of a frequency band, and |X(k)| is the amplitude of the frequency domain signal of this frequency band.

[0105] By calculating the total energy value of each frequency band, the energy distribution of the audio signal in each frequency band can be identified. Then, the lighting parameters corresponding to the total energy value can be further determined based on a predefined mapping relationship.

[0106] In one implementation, for each frequency band, based on a predefined mapping relationship, determining the lighting parameter corresponding to the total energy value includes:

[0107] For the frequency band within the preset low-frequency range, based on the predefined nonlinear mapping relationship, the light intensity corresponding to the total energy value is determined as the light parameter; the light intensity is positively correlated with the total energy value.

[0108] It can be understood that the frequency band of the frequency domain signal can be divided into several ranges such as low frequency (20Hz-250Hz), medium frequency (250Hz-4kHz) and high frequency (4kHz-20kHz). Among them, when the total energy of the low frequency band is high, it means that the audio signal has a strong bass effect, and when the total energy of the medium frequency band and the high frequency band is high, it means that the mid-range and treble effects of the audio signal are prominent. Based on this, the mapping relationship between different frequency bands and lighting parameters can be pre-defined.

[0109] In this embodiment, for the frequency band within the preset low-frequency range, the light intensity corresponding to the total energy value is determined based on a predefined nonlinear mapping relationship, thereby achieving an effect of increasing the light intensity of the vehicle ambient light when the total energy of the low-frequency band is higher.

[0110] For example, the predefined nonlinear mapping relationship can be expressed as:

[0111] I band =a·log(E band )+b

[0112] Among them, I band is the light intensity, E band is the total energy value of the frequency band, and a and b represent different adjustment parameters.

[0113] In one implementation, for each frequency band, based on a predefined mapping relationship, determining the lighting parameter corresponding to the total energy value includes:

[0114] For the frequency band within the preset high frequency range, based on the predefined linear mapping relationship, the flickering frequency corresponding to the total energy value is determined as the lighting parameter; the flickering frequency is positively correlated with the total energy value.

[0115] In this embodiment, for the frequency band within the preset high-frequency range, the flashing frequency corresponding to the total energy value is determined based on a predefined linear mapping relationship, thereby achieving the effect of increasing the flashing frequency of the vehicle ambient light when the total energy of the high-frequency band is high.

[0116] For example, the predefined linear mapping relationship can be expressed as:

[0117] F band =c·E band +d

[0118] Among them, F band is the flashing frequency, E band is the total energy value of the frequency band, and c and d represent different adjustment parameters.

[0119] In this way, an accurate response to the rhythm of the audio signal can be achieved, so that the vehicle ambient light has a higher intensity at low frequencies and a lower intensity at high frequencies, thereby producing a visual effect that matches the rhythm of the music.

[0120] From the above, it can be seen that the technical solution provided by the embodiment of the present application determines a certain main color tone by extracting color information and clustering analysis of the display image of the central control display screen, and then controls the light color of the vehicle atmosphere light to display the color value corresponding to the main color tone, thereby realizing real-time and dynamic adjustment of the light color of the vehicle atmosphere light in combination with the display image of the central control display screen. It has strong interactivity and does not need to rely on complex hardware during the implementation process, thus avoiding cumbersome hardware adjustments. It shows high adaptability and high stability in a variety of driving environments.

[0121] The vehicle atmosphere light control method provided in the embodiment of the present application can be executed by a vehicle atmosphere light control device. In the embodiment of the present application, the vehicle atmosphere light control device performs a terminal access method as an example to illustrate the vehicle atmosphere light control method provided in the embodiment of the present application.

[0122] Figure 2 is a block diagram of a vehicle-mounted ambient light control device according to an exemplary embodiment, comprising:

[0123] The acquisition module 201 is used to acquire the display image of the central control display screen and extract the color information of the display image;

[0124] A division module 202, used for dividing the color information into a preset number of color ranges;

[0125] An analysis module 203 is used to count the number of pixels included in each color range, and determine the color range with the largest number of pixels as the main color;

[0126] The control module 204 is used to control the light color of the vehicle ambient light to display the color value corresponding to the main color tone.

[0127] In one implementation, the division module 202 is specifically configured to:

[0128] Constructing a color histogram according to the color information; the color histogram includes multiple dimensions, each dimension corresponding to each of the color channels;

[0129] For the color histogram of each dimension, calculate the difference between the maximum value and the minimum value of the included color values ​​as the corresponding color range;

[0130] determining the largest color range as a target range;

[0131] Calculating a median value of the color values ​​of the target range, and dividing the target range into two new color ranges according to the median value;

[0132] Return to the step of determining the largest color range as the target range until the number of the obtained color ranges reaches a preset number.

[0133] In one implementation, the analysis module 203 is further configured to:

[0134] For other color ranges except the main color tone, if the number of pixels included in any of the other color ranges meets a preset condition, determine any of the other color ranges as a vibrant color tone;

[0135] The control module 204 is specifically used for:

[0136] The light color of the vehicle ambient light is controlled to be displayed as the color value corresponding to the main color tone and the vibrant color tone.

[0137] In one implementation, when the main color tone is RGB color information, the control module 204 is specifically configured to:

[0138] Convert the main color tone into HSB color information to obtain first information; the first information includes a first brightness;

[0139] Adjusting the value of the first brightness to a second brightness to obtain second information; the second brightness is higher than the first brightness;

[0140] Convert the second information into RGB color information to obtain a color value corresponding to the main color tone;

[0141] The light color of the vehicle ambient light is controlled to be displayed as the color value.

[0142] In one implementation, the division module 202 is specifically configured to:

[0143] Dividing the displayed image into a plurality of regions;

[0144] According to the color information in each area, each area is divided into a preset number of color ranges;

[0145] The analysis module 203 is specifically used for:

[0146] For each region, the number of pixels included in each corresponding color range is counted, and the color range with the largest number of pixels is determined as the main color tone of the region.

[0147] In one implementation, the device further includes:

[0148] A determination module, used to obtain an audio signal in the vehicle and convert the audio signal into a frequency domain signal; and determine the lighting parameters of the vehicle atmosphere light according to the frequency domain signal;

[0149] The control module 204 is specifically used for:

[0150] Based on the lighting parameters, the lighting color of the vehicle ambient light is controlled to be displayed as the color value corresponding to the main color tone.

[0151] In one implementation, the determining module is specifically configured to:

[0152] Calculate the total energy value in each frequency band according to the frequency domain signals corresponding to the preset multiple frequency bands respectively;

[0153] For each frequency band, the lighting parameter corresponding to the total energy value is determined based on a predefined mapping relationship.

[0154] In one implementation, the determining module is specifically configured to:

[0155] For a frequency band within a preset low-frequency range, based on a predefined nonlinear mapping relationship, determine the light intensity corresponding to the total energy value as a light parameter; the light intensity is positively correlated with the total energy value; or,

[0156] For a frequency band within a preset high frequency range, based on a predefined linear mapping relationship, a flickering frequency corresponding to the total energy value is determined as a lighting parameter; the flickering frequency is positively correlated with the total energy value.

[0157] From the above, it can be seen that the technical solution provided by the embodiment of the present application determines a certain main color tone by extracting color information and clustering analysis of the display image of the central control display screen, and then controls the light color of the vehicle atmosphere light to display the color value corresponding to the main color tone, thereby realizing real-time and dynamic adjustment of the light color of the vehicle atmosphere light in combination with the display image of the central control display screen. It has strong interactivity and does not need to rely on complex hardware during the implementation process, thus avoiding cumbersome hardware adjustments. It shows high adaptability and high stability in a variety of driving environments.

[0158] The vehicle-mounted atmosphere light control method provided in the embodiment of the present application can be executed by a terminal access terminal. In the embodiment of the present application, a terminal access terminal executes a terminal access method as an example to illustrate the device of the vehicle-mounted atmosphere light control method provided in the embodiment of the present application.

[0159] The vehicle-mounted atmosphere light control device in the embodiment of the present application can be an electronic device, or a component in the electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal, or it can be other devices other than a terminal. Exemplarily, the electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, a vehicle-mounted electronic device, a mobile Internet device (Mobile Internet Device, MID), an augmented reality (augmented reality, AR) / virtual reality (virtual reality, VR) device, a robot, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant, PDA), etc. It can also be a server, a network attached storage (Network Attached Storage, NAS), a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc., and the embodiment of the present application is not specifically limited.

[0160] The vehicle-mounted atmosphere light control device provided in the embodiment of the present application can achieve Figure 1 To avoid repetition, the various processes implemented by the method embodiment are not described here.

[0161] Alternatively, if Figure 3 As shown, an embodiment of the present application also provides an electronic device 500, including a processor 501 and a memory 502, wherein the memory 502 stores programs or instructions that can be executed on the processor 501, and when the program or instructions are executed by the processor 501, the various steps of the above-mentioned vehicle ambient light control method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, they are not described here.

[0162] It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and non-mobile electronic devices mentioned above.

[0163] Figure 4 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of the present application.

[0164] The electronic device 1000 includes but is not limited to: a radio frequency unit 1001, a network module 1002, an audio output unit 1003, an input unit 1004, a sensor 1005, a display unit 1006, a user input unit 1007, an interface unit 1008, a memory 1009, and a processor 1010 and other components.

[0165] Those skilled in the art will appreciate that the electronic device 1000 may also include a power source (such as a battery) for supplying power to each component, and the power source may be logically connected to the processor 1010 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Figure 4 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.

[0166] From the above, it can be seen that the technical solution provided by the embodiment of the present application determines a certain main color tone by extracting color information and clustering analysis of the display image of the central control display screen, and then controls the light color of the vehicle atmosphere light to display the color value corresponding to the main color tone, thereby realizing real-time and dynamic adjustment of the light color of the vehicle atmosphere light in combination with the display image of the central control display screen. It has strong interactivity and does not need to rely on complex hardware during the implementation process, thus avoiding cumbersome hardware adjustments. It shows high adaptability and high stability in a variety of driving environments.

[0167] It should be understood that in the embodiment of the present application, the input unit 1004 may include a graphics processor (Graphics Processing Unit, GPU) 10041 and a microphone 10042, and the graphics processor 10041 processes the image data of the static picture or video obtained by the image capture device (such as a camera) in the video capture mode or the image capture mode. The display unit 1006 may include a display panel 10061, and the display panel 10061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 1007 includes a touch panel 10071 and at least one of other input devices 10072. The touch panel 10071 is also called a touch screen. The touch panel 10071 may include two parts: a touch detection device and a touch controller. Other input devices 10072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which will not be repeated here.

[0168] The memory 1009 can be used to store software programs and various data. The memory 1009 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or instructions required for at least one function (such as a sound playback function, an image playback function, etc.), etc. In addition, the memory 1009 may include a volatile memory or a non-volatile memory, or the memory 1009 may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDRSDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synchronous link dynamic random access memory (SLDRAM) and a direct memory bus random access memory (DRRAM). The memory 109 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.

[0169] The processor 1010 may include one or more processing units; optionally, the processor 1010 integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communication signals, such as a baseband processor. It is understandable that the modem processor may not be integrated into the processor 1010.

[0170] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, each process of the above-mentioned vehicle ambient light control method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0171] The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory ROM, a random access memory RAM, a magnetic disk or an optical disk.

[0172] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned vehicle ambient light control method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0173] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.

[0174] An embodiment of the present application provides a computer program product, which is stored in a storage medium. The program product is executed by at least one processor to implement the various processes of the above-mentioned vehicle ambient light control method embodiment and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0175] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.

[0176] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application.

[0177] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.

Claims

1. A method for controlling a vehicle ambient light, characterized in that: include: Acquire a display image of the central control display screen, and extract color information of the display image; Dividing a preset number of color ranges according to the color information; Counting the number of pixels included in each color range, and determining the color range with the largest number of pixels as the main color tone; The light color of the vehicle ambient light is controlled to be displayed as the color value corresponding to the main color tone.

2. The vehicle-mounted ambient light control method according to claim 1, characterized in that: The color information includes the color value of each pixel corresponding to a plurality of color channels, and dividing the preset number of color ranges according to the color information includes: Constructing a color histogram according to the color information; the color histogram includes multiple dimensions, each dimension corresponding to each of the color channels; For the color histogram of each dimension, calculate the difference between the maximum value and the minimum value of the included color values ​​as the corresponding color range; determining the largest color range as a target range; Calculating a median value of the color values ​​of the target range, and dividing the target range into two new color ranges according to the median value; Return to the step of determining the largest color range as the target range until the number of the obtained color ranges reaches a preset number.

3. The vehicle-mounted ambient light control method according to claim 1, characterized in that: After counting the number of pixels included in each color range and determining the color range with the largest number of pixels as the main color, the method further includes: For other color ranges except the main color, if the number of pixels included in any other color range meets a preset condition, determine any other color range as a vibrant color range; The light color of the vehicle ambient light is controlled to be displayed as the color value corresponding to the main color tone, including: The light color of the vehicle ambient light is controlled to be displayed as the color value corresponding to the main color tone and the vibrant color tone.

4. The vehicle ambient light control method according to claim 1, characterized in that: In the case where the main color tone is RGB color information, the light color of the vehicle-mounted ambient light is controlled to be displayed as a color value corresponding to the main color tone, including: Convert the main color tone into HSB color information to obtain first information; the first information includes a first brightness; Adjusting the value of the first brightness to a second brightness to obtain second information; the second brightness is higher than the first brightness; Convert the second information into RGB color information to obtain a color value corresponding to the main color tone; The light color of the vehicle ambient light is controlled to be displayed as the color value.

5. The vehicle-mounted ambient light control method according to claim 1, characterized in that: The dividing into a preset number of color ranges according to the color information includes: Dividing the displayed image into a plurality of regions; According to the color information in each area, each area is divided into a preset number of color ranges; The counting of the number of pixels included in each color range and determining the color range with the largest number of pixels as the main color tone includes: For each region, the number of pixels included in each corresponding color range is counted, and the color range with the largest number of pixels is determined as the main color tone of the region.

6. The vehicle-mounted ambient light control method according to claim 1, characterized in that: The method further comprises: Acquire an audio signal in the vehicle, and convert the audio signal into a frequency domain signal; Determining lighting parameters of the vehicle-mounted ambient light according to the frequency domain signal; The light color of the vehicle ambient light is controlled to be displayed as the color value corresponding to the main color tone, including: Based on the lighting parameters, the lighting color of the vehicle ambient light is controlled to be displayed as the color value corresponding to the main color tone.

7. The vehicle-mounted ambient light control method according to claim 6, characterized in that: Determining the lighting parameters of the vehicle-mounted ambient light according to the frequency domain signal includes: Calculate the total energy value in each frequency band according to the frequency domain signals corresponding to the preset multiple frequency bands respectively; For each frequency band, the lighting parameter corresponding to the total energy value is determined based on a predefined mapping relationship.

8. The vehicle-mounted ambient light control method according to claim 7, characterized in that: The step of determining the lighting parameter corresponding to the total energy value for each frequency band based on a predefined mapping relationship includes: For a frequency band within a preset low-frequency range, based on a predefined nonlinear mapping relationship, determine the light intensity corresponding to the total energy value as a light parameter; the light intensity is positively correlated with the total energy value; or, For a frequency band within a preset high frequency range, based on a predefined linear mapping relationship, a flickering frequency corresponding to the total energy value is determined as a lighting parameter; the flickering frequency is positively correlated with the total energy value.

9. A vehicle-mounted ambient light control device, characterized in that: include: An acquisition module, used to acquire a display image of the central control display screen and extract color information of the display image; A division module, used for dividing the color information into a preset number of color ranges; An analysis module, used for counting the number of pixels included in each color range, and determining the color range with the largest number of pixels as the main color tone; The control module is used to control the light color of the vehicle ambient light to display the color value corresponding to the main color tone.

10. An electronic device, characterized in that: include: processor; a memory for storing instructions executable by the processor; Wherein, the processor is configured to execute the instructions to implement the vehicle ambient light control method as described in any one of claims 1-8.

11. A readable storage medium, characterized in that: The readable storage medium stores a program or instruction, and when the program or instruction is executed by the processor, the steps of the vehicle ambient light control method as described in any one of claims 1-8 are implemented.

Citation Information

Cited By

  • Light effect animation data generation method and device, equipment and medium

    CN120873829A

  • Screen desktop adjusting method and vehicle

    CN120902526A

  • Methods for user interaction via an input / output device in a vehicle and vehicle

    DE102025121496B3