Lamp effect implementation method and device of vehicle-mounted atmosphere lamp, storage medium and program product
By defining a common color gamut in a standard color space and mapping the lighting effects to that gamut, display data is generated to control the lighting effects of in-vehicle ambient lights. This solves the problems of low efficiency and large deviation in the implementation of in-vehicle ambient light effects, and achieves consistency of lighting effects on different devices.
Patent Information
- Application Number
- CN202511136910.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-08-14
- Publication Date
- 2025-11-04
AI Technical Summary
Existing technologies for vehicle ambient lighting have low efficiency in achieving lighting effects, and the final lighting effect deviates significantly from the expected effect.
By obtaining the first color coordinate value of the target lighting effect's color value in the standard color space and mapping it to the common color gamut, display data for controlling the vehicle ambient lighting is generated. The common color gamut is determined based on the overlapping area of the color rendering range of the display at the execution end and the vehicle ambient lighting in the standard color space.
It improves the efficiency of lighting effect implementation, reduces the deviation of lighting effect observed at the design end and on the vehicle ambient lighting, and ensures the consistency of lighting effect on different devices.
Smart Images

Figure CN120897288A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of vehicle display technology, and in particular to a method, device, storage medium and program product for realizing the lighting effect of vehicle ambient lighting. Background Technology
[0002] With the development of automotive technology, ambient lighting is increasingly being used in the interior and exterior design of cars. Ambient lighting typically uses red, green, and blue (RGB) light-emitting diodes (LEDs) in combination with light guides and interior or exterior materials to create various cool, immersive, and brand-specific cabin atmospheres or exterior lighting scenes. The use of RGB LEDs allows for more vibrant color effects and gives ambient lighting more possibilities in automotive applications.
[0003] In related technologies, designers of automotive ambient lighting implement the lighting effects on the design-end processor and display screen, determining the dynamic effects, colors, and brightness information included in the lighting effects. The implemented results are then deployed on automotive ambient lighting prototypes, and the color information in the implemented results is continuously adjusted through subjective review to make the lighting effects of the automotive ambient lighting approach the desired display effect. This method of implementing automotive ambient lighting effects suffers from low efficiency and a significant deviation between the final lighting effect and the intended effect. Summary of the Invention
[0004] This application provides a method, device, storage medium, and program product for implementing the lighting effect of vehicle ambient lighting, in order to improve the efficiency of lighting effect implementation and reduce the deviation between the final lighting effect of the vehicle ambient lighting and the expected effect.
[0005] In a first aspect, embodiments of this application provide a method for implementing the lighting effect of an in-vehicle ambient light, applied to an execution end. The in-vehicle ambient light uses red, green, and blue RGB light-emitting diode (LED) particles, and the lighting effect implementation method includes:
[0006] Obtain the first color coordinate value of the target lighting effect in the standard color space;
[0007] Based on the first color coordinate value, the corresponding pixel is mapped to the common color gamut to obtain the second color coordinate value of the pixel in the common color gamut. The common color gamut is determined based on the overlapping area of the color range of the display on the execution end and the color range of the vehicle ambient light in the standard color space.
[0008] Based on the second color coordinates and brightness values of the pixels, first display data is generated to control the vehicle ambient lighting to achieve the target lighting effect.
[0009] In one possible implementation, based on the first color coordinate value, the corresponding pixel is mapped to a common color gamut to obtain the second color coordinate value of the pixel in the common color gamut, including:
[0010] Determine whether the coordinates of the first color are within the common color gamut;
[0011] If the first color coordinate value is within the common color gamut, then the second color coordinate value of the corresponding pixel in the common color gamut is determined to be the first color coordinate value;
[0012] If the first color coordinate value is not within the common color gamut, then determine the target color coordinate value that is closest to the first color coordinate value in the common color gamut, and use the target color coordinate value as the second color coordinate value of the corresponding pixel in the common color gamut.
[0013] In one possible implementation, the execution end is either the lighting effect design end or the vehicle end.
[0014] In one possible implementation, the execution end is the lighting effect design end, and the common color gamut is determined as follows: obtain the color rendering range of the display of the lighting effect design end, the color rendering range of the vehicle ambient light, and the color rendering range of the vehicle end display; take the overlapping area of the color rendering range of the display, the color rendering range of the vehicle ambient light, and the color rendering range of the vehicle end display in the standard color space as the common color gamut.
[0015] In one possible implementation, the lighting effect implementation method further includes:
[0016] Based on the second color coordinate value and brightness value corresponding to the pixel, second display data for the target lighting effect is generated on the vehicle-mounted display, so that the vehicle-mounted display can display the target lighting effect based on the second display data.
[0017] In one possible implementation, the display data includes color display data and brightness display data. Based on the second color coordinates of the pixel and the brightness value, display data for controlling the vehicle ambient lighting to achieve the target lighting effect is generated, including:
[0018] The color display data for achieving the target lighting effect of the vehicle ambient light is determined by multiplying the first transformation coefficient with the second color coordinate value corresponding to the pixel. The first transformation coefficient represents the mapping relationship between the color range of the display at the lighting effect design end and the color range of the vehicle ambient light.
[0019] The brightness value corresponding to each pixel is used as the brightness display data for achieving the target lighting effect of the vehicle ambient light.
[0020] In one possible implementation, the lighting effect image corresponding to the target lighting effect is obtained in the following way:
[0021] Get the target lighting effect;
[0022] If the target lighting effect is in video format, the target lighting effect is sampled at a preset frame sampling rate to obtain a set of lighting effect images, and the set of lighting effect images contains at least one lighting effect image;
[0023] Based on the position information of the RGB LEDs in the vehicle ambient lighting, pixel sampling is performed on the lighting effect image to obtain the lighting effect image corresponding to the target lighting effect.
[0024] In one possible implementation, the target lighting effect is obtained in the following way:
[0025] The target lighting effect can be read from the preset lighting effect storage space corresponding to the lighting effect design end, or it can be obtained by interacting with the vehicle, wherein the vehicle is equipped with a human-computer interaction interface for uploading the target lighting effect.
[0026] Secondly, this application provides a lighting effect implementation device applied to an execution end. The vehicle ambient light uses red, green, and blue RGB light-emitting diode (LED) particles, including:
[0027] The acquisition module is used to obtain the first color coordinate value of the target lighting effect's color value in the standard color space;
[0028] The mapping module is used to map the corresponding pixel to the common color gamut based on the first color coordinate value, so as to obtain the second color coordinate value of the pixel in the common color gamut. The common color gamut is determined according to the overlapping area of the color range of the display of the execution end and the color range of the vehicle ambient light in the standard color space.
[0029] The generation module is used to generate first display data for controlling the vehicle ambient lighting to achieve the target lighting effect, based on the second color coordinate value and brightness value corresponding to the pixel.
[0030] Thirdly, embodiments of this application provide a lighting effect implementation device, including: a memory and a processor;
[0031] The memory stores instructions that the computer executes;
[0032] The processor executes computer execution instructions stored in memory, causing the processor to perform the first aspect and / or various possible implementations of the first aspect as described above.
[0033] Fourthly, embodiments of this application provide a computer-readable storage medium storing computer-executable instructions, which, when executed, are used to implement the first aspect and / or various possible implementations of the first aspect.
[0034] Fifthly, embodiments of this application provide a computer program product, including a computer program, which, when executed, implements the first aspect and / or various possible implementations of the first aspect.
[0035] The lighting effect implementation method, device, storage medium, and program product provided in this application embodiment obtain the first color coordinate value of the target lighting effect's color value in a standard color space, map the first color coordinate value to a common color gamut to obtain the second color coordinate value corresponding to the first color coordinate value, and generate display data for controlling the vehicle ambient light to achieve the target lighting effect based on the second color coordinate value, i.e., the brightness value corresponding to the pixel. The common color gamut is determined based on the overlapping area of the color rendering range of the execution terminal's display and the color rendering range of the vehicle ambient light in the standard color space. This ensures that the colors included in the target lighting effect are within both the color rendering range of the execution terminal's display and the color rendering range of the vehicle ambient light, reducing the deviation between the lighting effect observed on the execution terminal's display and the actual effect implemented on the vehicle ambient light, thus improving the efficiency of lighting effect implementation. Attached Figure Description
[0036] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.
[0037] Figure 1 A flowchart illustrating the lighting effect implementation method provided in this application embodiment;
[0038] Figure 2 A schematic diagram of the common color gamut provided for embodiments of this application;
[0039] Figure 3 A schematic diagram of the lighting effect realization device provided in this application;
[0040] Figure 4 A schematic diagram of the structure of the lighting effect realization device provided in this application.
[0041] The accompanying drawings illustrate specific embodiments of this application, which will be described in more detail below. These drawings and descriptions are not intended to limit the scope of the concept in any way, but rather to illustrate the concept of this application to those skilled in the art through reference to particular embodiments. Detailed Implementation
[0042] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numbers in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application as detailed in the appended claims.
[0043] The lighting effect of in-vehicle ambient lighting refers to the effect displayed by the color and brightness of the ambient lights. During the design phase, lighting effect designers create images or videos to represent the lighting effect on the design end, and generate display data to control the display of the in-vehicle ambient lights based on the images or videos. Because there are differences between the color rendering range of the display on the design end and the in-vehicle ambient lights, after the designers complete the lighting effect design on the design end according to the expected effect, they will deploy the display data corresponding to the lighting effect generated on the design end on the in-vehicle ambient lights. Therefore, the observed actual lighting effect differs from the expected lighting effect.
[0044] To address the shortcomings of existing technologies, this application provides a method for implementing the lighting effects of in-vehicle ambient lighting. This method involves overlaying the color rendering range of the design-end monitor, the in-vehicle ambient lighting, and the vehicle-mounted display screen in a standard color space to determine a common color gamut. The lighting effects designed on the design end, or user-defined lighting effects uploaded, are mapped into this common color gamut, ensuring that the colors of the lighting effects fall within it. This avoids discrepancies between the displayed lighting effects and the intended effects caused by the color range of the lighting effects exceeding the color rendering range of the in-vehicle ambient lighting or the vehicle-mounted display screen. A transformation coefficient is used to correct and control the display data of the in-vehicle ambient lighting and the vehicle-mounted display screen, ensuring consistent color display across these three platforms. The entire lighting effect implementation process requires no manual intervention, improving efficiency and reducing deviations in the observed lighting effects on the design-end monitor, the in-vehicle ambient lighting, and the vehicle-mounted display screen.
[0045] The technical solution of this application and how the technical solution of this application solves the above-mentioned technical problems are described in detail below with specific embodiments. These specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described again in some embodiments. The embodiments of this application will now be described with reference to the accompanying drawings.
[0046] Figure 1 This is a flowchart illustrating the method for implementing the lighting effects of in-vehicle ambient lighting provided in an embodiment of this application. Figure 1 As shown in the figure, this application embodiment provides a method for implementing the lighting effect of an in-vehicle ambient light, applied to the execution end. The in-vehicle ambient light uses RGB LED chips, and the lighting effect implementation method includes:
[0047] S101. Obtain the first color coordinate value of the target lighting effect in the standard color space.
[0048] The target lighting effect can be in the form of an image or a video. For video lighting effects, the video is sampled at a certain frame rate to obtain a set of lighting effect images, which are then processed one by one. Each lighting effect image is composed of pixels, and each pixel contains color and brightness information.
[0049] It is understandable that a standard color space is device-independent, being a standard reference color space based on human visual perception. For example, a standard color space could be the International Commission on Illumination 1931 XYZ (CIE 1931 XYZ) color space or the International Commission on Illumination 1978 XYZ color space. (Commission Internationale de l'Eclairage 1978 CIE1978 Color spaces, etc.
[0050] In one implementation, different display devices may control color display based on different color systems, such as the RGB color system or the Hue Saturation Value (HSV) color system. First, the color parameters of pixels in the lighting effect image under different color systems are converted to the same color system. Then, the first color coordinate value corresponding to the pixel is determined in a standard color space. Display devices include displays at the design end, in-vehicle ambient lighting, and in-vehicle displays.
[0051] For example, the display on the design side generates color display data of pixels in the lighting effect image based on the HSV color system. First, the color display data under the HSV color system is converted into display data under the RGB system to make it consistent with the color system of the color display data in the vehicle ambient light and the vehicle display, so as to ensure the consistency of the color display data format.
[0052] S102. Based on the first color coordinate value, the corresponding pixel is mapped to the common color gamut to obtain the second color coordinate value of the pixel in the common color gamut. The common color gamut is determined according to the overlapping area of the color range of the display being executed and the color range of the vehicle ambient light in the standard color space.
[0053] Optionally, the execution end can be the design end or the vehicle end.
[0054] For example, if the execution end is the design end, then the common color gamut is the overlapping area of the color rendering range of the display on the design end and the color rendering range of the vehicle ambient light in the standard color space.
[0055] In another example, if the execution end is the vehicle end, then the common color gamut is the overlapping area of the color range of the vehicle end display and the color range of the vehicle ambient lighting in the standard color space.
[0056] A concrete example is when the execution end is the design end, such as... Figure 2 As shown, triangle R1G1B1 represents the color gamut of the display at the design end, and triangle R2G2B2 represents the color gamut of the vehicle ambient light. The overlapping area of the color gamut of the display at the design end and the color gamut of the vehicle ambient light in the standard color space, that is, the overlapping area of triangles R1G1B1 and R2G2B2, is the common color gamut.
[0057] The lighting effect images are designed by lighting designers on the design platform or uploaded by users. The ideal lighting effect color is the effect observed by the human eye on the design platform's display screen or the vehicle's display screen. However, because the color rendering range of the design platform's display screen or the vehicle's display screen is different from that of the vehicle's ambient lighting, some colors that can be displayed on the design platform's display screen or the vehicle's display screen cannot be displayed on the vehicle's ambient lighting. Therefore, if the lighting effect image is not processed and the display data used to control the vehicle's ambient lighting is directly generated, the final lighting effect color displayed on the vehicle's ambient lighting will differ from the ideal lighting effect color.
[0058] To address the aforementioned issues, the lighting effect implementation method provided in this application first processes the lighting effect image. Specifically, it maps the color coordinate values of the pixels in the lighting effect image to a common color gamut. Colors within the common color gamut are within both the display's color range and the vehicle ambient light's color range. Therefore, the lighting effect image obtained after mapping the pixel color coordinate values to the common color gamut does not exceed the vehicle ambient light's color range, ensuring that the lighting effect color observed on the display at the execution end is consistent with the lighting effect color observed on the vehicle ambient light.
[0059] S103. Generate first display data for controlling the vehicle ambient lighting to achieve the target lighting effect based on the second color coordinate value and brightness value corresponding to the pixel.
[0060] The display data includes color display data and brightness display data. In one implementation, the second color coordinates and brightness values corresponding to pixels in the lighting effect image are quantized to generate first display data for controlling the vehicle ambient lighting to achieve the target lighting effect.
[0061] For example, the second color coordinate values and brightness values are quantized in hexadecimal into first display data in code format.
[0062] The method for implementing the lighting effect of in-vehicle ambient lighting provided in this application embodiment processes the lighting effect image, mapping the color coordinate values of pixels in the image to a common color gamut. The common color gamut is a color range determined by the overlapping area of the color rendering range of the display on the execution end and the color rendering range of the in-vehicle ambient lighting in a standard color space. This ensures that the mapped color coordinate values do not exceed the color rendering range of the in-vehicle ambient lighting. The execution end is the design end and / or the vehicle end, guaranteeing that the lighting effect color observed on the display on the design end and / or the in-vehicle display is consistent with the lighting effect color observed on the in-vehicle ambient lighting. The entire lighting effect implementation process does not require manual intervention, improving the efficiency of lighting effect implementation and reducing the deviation between the lighting effect observed on the display on the execution end and the in-vehicle ambient lighting.
[0063] In one possible implementation, based on the first color coordinate value, the corresponding pixel is mapped to a common color gamut to obtain the second color coordinate value of the pixel in the common color gamut, including:
[0064] Determine whether the coordinates of the first color are within the common color gamut;
[0065] If the first color coordinate value is within the common color gamut, then the second color coordinate value of the corresponding pixel in the common color gamut is determined to be the first color coordinate value;
[0066] If the first color coordinate value is not within the common color gamut, then determine the target color coordinate value that is closest to the first color coordinate value in the common color gamut, and use the target color coordinate value as the second color coordinate value of the corresponding pixel in the common color gamut.
[0067] It is understandable that if the first color coordinate value is within the common color gamut, the color corresponding to the first color coordinate value can be displayed on both the display at the design end and the vehicle ambient light. Therefore, during the mapping process, the first color coordinate value is retained, and the second color coordinate value is determined to be the first color coordinate value.
[0068] If the first color coordinate value is not within the common color gamut, it means that the color corresponding to the first color coordinate value can be displayed on the designer's monitor, but not on the vehicle ambient lighting. This will cause a difference between the lighting effect observed on the designer's monitor and the lighting effect on the vehicle ambient lighting. In this case, replacing the first color coordinate value with the target color coordinate value that is closest to the first color coordinate value within the common color gamut can ensure that the color effect is consistent with the effect displayed on the designer's monitor and the effect displayed on the vehicle ambient lighting, while maintaining the color effect as much as possible.
[0069] Optionally, based on the Euclidean distance principle, the target color coordinates that are closest to the first color coordinate value within the common color gamut are determined.
[0070] For example, in a common color gamut, the adjacent color coordinate values of the first color coordinate value are determined; the Euclidean distance between any adjacent color coordinate value and the first color coordinate value is determined; and the adjacent color coordinate value corresponding to the minimum Euclidean distance is determined as the target color coordinate value in the common color gamut that is closest to the first color coordinate value.
[0071] The method for achieving the effect of in-vehicle ambient lighting provided in this application embodiment maps the first color coordinate value of a pixel to a common color gamut. For the first color coordinate value that is not in the common color gamut, the target color coordinate value that is closest to the first color coordinate value in the common color gamut is selected to replace the first color coordinate value. This can reduce the deviation between the color display effect on the design end and the display on the in-vehicle ambient lighting while ensuring the color effect as much as possible.
[0072] Based on the above embodiments, in one possible implementation, the common color gamut is determined as follows: the color rendering range of the display at the lighting effect design end, the color rendering range of the vehicle ambient light, and the color rendering range of the vehicle end display are obtained; the overlapping area of the color rendering range of the display, the color rendering range of the vehicle ambient light, and the color rendering range of the vehicle end display in the standard color space is taken as the common color gamut.
[0073] Correspondingly, the lighting effect implementation method further includes: generating second display data for the target lighting effect on the vehicle-mounted display based on the second color coordinate value and brightness value corresponding to the pixel, so that the vehicle-mounted display displays the target lighting effect based on the second display data.
[0074] Vehicle-mounted displays are typically liquid crystal displays (LCDs), organic light-emitting diode (OLED) screens, or thin film transistor (TFT) screens.
[0075] The vehicle-mounted display can be used to preview lighting effects, allowing users to select their desired lighting effects on the vehicle. Alternatively, users can upload videos through the in-vehicle human-machine interface and preview the lighting effects generated based on the videos on the vehicle-mounted display. Therefore, it is necessary to ensure the consistency between the lighting effects displayed on the design end monitor, the lighting effects displayed by the in-vehicle ambient lighting, and the previews on the vehicle-mounted display.
[0076] The display data includes color display data and brightness display data. In one implementation, the second color coordinate values and brightness values corresponding to pixels in the lighting effect image are quantized to generate display data for the target lighting effect on the vehicle-mounted display. For example, the second color coordinate values and brightness values are quantized into display data in code format using hexadecimal.
[0077] The method for implementing the lighting effect of in-vehicle ambient lighting provided in this application fully considers the preview effect of the lighting effect on the vehicle-end display. The overlapping area of the color rendering range of the display, the color rendering range of the in-vehicle ambient lighting and the color rendering range of the vehicle-end display in the standard color space is taken as a common color gamut, and the display data of the vehicle-end display for the target lighting effect is generated accordingly, so that the lighting effect displayed on the display at the design end, the in-vehicle ambient lighting and the vehicle-end display is consistent.
[0078] In one possible implementation, the first display data includes color display data and brightness display data. Based on the second color coordinates of the pixel and the brightness value, first display data for controlling the vehicle ambient lighting to achieve the target lighting effect is generated, including:
[0079] The color display data for achieving the target lighting effect of the vehicle ambient light is determined by multiplying the first transformation coefficient with the second color coordinate value corresponding to the pixel. The first transformation coefficient represents the mapping relationship between the color range of the display at the lighting effect design end and the color range of the vehicle ambient light.
[0080] The brightness value corresponding to each pixel is used as the brightness display data for achieving the target lighting effect of the vehicle ambient light.
[0081] The color display data of the target lighting effect is represented in hexadecimal code form on both the display on the design end and the vehicle ambient light. However, since the color rendering range of the display on the design end and the color rendering range of the vehicle ambient light are different, the value of the same color represented in hexadecimal code on the design end is different from the value used to control the color display of the vehicle ambient light.
[0082] There is a mapping relationship between the display data used to control the display of the target lighting effect on the design end and the display data used to control the display of the target lighting effect in the vehicle ambient light. This mapping relationship can be represented by a first transformation coefficient, which indicates the color rendering range of the display on the lighting effect design end and the color rendering range of the vehicle ambient light. Specifically, the transformation matrix between the color rendering range of the display on the design end and the color rendering range of the vehicle ambient light is obtained, and the first transformation coefficient is determined based on the transformation matrix.
[0083] Accordingly, the color display data of the target lighting effect previewed on the vehicle-end display is determined by multiplying the second transformation coefficient with the second color coordinate value corresponding to the pixel. The second transformation coefficient represents the mapping relationship between the color range of the display on the lighting effect design end and the color range of the display on the vehicle end. The brightness value corresponding to the pixel is used as the brightness display data of the target lighting effect previewed on the vehicle end display.
[0084] The method for implementing the lighting effect of in-vehicle ambient lighting provided in this application embodiment includes a display screen at the design end, an in-vehicle ambient light, and an in-vehicle display. It fully considers the differences in the color rendering range of different color display devices and the errors brought about in the quantization process, and introduces a transformation coefficient to represent the mapping relationship of the color rendering range between different color display devices. It adjusts the color display data of the same color on different color display devices to ensure the consistency of the lighting effect color display on different color display devices.
[0085] In one possible implementation, the lighting effect image corresponding to the target lighting effect is obtained in the following way:
[0086] Get the target lighting effect;
[0087] If the target lighting effect is in video format, the target lighting effect is sampled at a preset frame sampling rate to obtain a set of lighting effect images, and the set of lighting effect images contains at least one lighting effect image;
[0088] Based on the position information of the RGB LEDs in the vehicle ambient lighting, pixel sampling is performed on the lighting effect image to obtain the lighting effect image corresponding to the target lighting effect.
[0089] In one implementation, the sampling period corresponding to the preset frame sampling rate is the same as the frame period of the video, or the sampling period corresponding to the frame sampling rate is an integer multiple of the frame period of the video, which can ensure the dynamic continuity of the target lighting effect.
[0090] For example, the sampling period corresponding to the frame sampling rate is the same as the frame rate of the lighting effect video, which is 20fps~50fps.
[0091] For target lighting effects in video format, such as a video of fireflies flying, as mentioned earlier, considering the continuity of the video effect and that the sampling period corresponding to the frame sampling rate should be as similar as possible to or an integer multiple of the video's frame period, the frame rate of the lighting effect video is designed to be 25 frames per second. A set of lighting effect images is obtained with a sampling period of 40ms. The size of the lighting effect images can be predetermined, for example, 512 pixels * 512 pixels. For user-uploaded videos, the same sampling method is used to obtain the set of lighting effect images.
[0092] Based on the actual distribution area and quantity of RGB LED hardware in the vehicle, a grid is divided within a frame of the same size as the lighting effect image. The positions of the RGB LEDs are marked in the grid, and the area and number information of the RGB LEDs are generated. This can be collectively referred to as the area position matrix information of the hardware RGB LEDs. A scale (anchoring of the actual RGB LED distribution to the frame size position information) may be used in this process.
[0093] Read the RGB LED position matrix information (i.e., the area and number information of the RGB LEDs) from the lighting effect image set corresponding to each lighting effect video. Identify the pixel corresponding to each RGB LED effect (the pixel area can have various shapes, such as squares; its size usually covers the size of the RGB LED particles). Read the RGB color and brightness values of the pixels. Convert the RGB color and brightness values of the pixels corresponding to the RGB LED positions into hexadecimal code information and record it.
[0094] The method for implementing the lighting effect of in-vehicle ambient lighting provided in this application embodiment first samples the lighting effect image of the video format lighting effect, and then samples the pixels in the lighting effect image according to the position information of the RGB LEDs in the in-vehicle ambient lighting, converting the irregular and complex video effect into a lighting effect image, and then generating display data for controlling the display of the target lighting effect of the in-vehicle ambient lighting based on the lighting effect image. This method is friendly to the styling design, and the styling of the in-vehicle ambient lighting effect can be designed in a more flexible way to create cool effects.
[0095] In one possible implementation, the target lighting effect is obtained in the following way:
[0096] The target lighting effect can be read from the preset lighting effect storage space corresponding to the lighting effect design end, or it can be obtained by interacting with the vehicle, wherein the vehicle is equipped with a human-computer interaction interface for uploading the target lighting effect.
[0097] For example, the user sends the target lighting effect to the vehicle through the human-machine interface on the vehicle. The vehicle sends the target lighting effect to the design end. The design end processes the target lighting effect to form display data for controlling the display of the target lighting effect of the vehicle ambient light, and sends it to the vehicle. After receiving the display data, the vehicle ambient light controller controls the display of the vehicle ambient light according to the display data.
[0098] The vehicle ambient lighting controller can be a standalone controller or a corresponding vehicle ambient lighting control module within the vehicle's central control unit.
[0099] The method for implementing the lighting effect of in-vehicle ambient lighting provided in this application embodiment can read the target lighting effect locally on the design end, or obtain the user-uploaded custom lighting effect through the human-computer interaction interface, thereby improving the richness and flexibility of the lighting effect implementation content.
[0100] Figure 3 This is a schematic diagram of the structure of the lighting effect implementation device provided in the embodiments of this application, as shown below. Figure 3 As shown, applied to the execution end, the vehicle ambient light uses red, green, and blue RGB light-emitting diode (LED) particles. The lighting effect implementation device 30 provided in this embodiment includes:
[0101] The acquisition module 301 is used to acquire the first color coordinate value of the color value of the target lighting effect in the standard color space;
[0102] The mapping module 302 is used to map the corresponding pixel to a common color gamut based on the first color coordinate value, so as to obtain the second color coordinate value of the pixel in the common color gamut. The common color gamut is determined according to the overlapping area of the color range of the display of the execution end and the color range of the vehicle ambient light in the standard color space.
[0103] The generation module 303 is used to generate first display data for controlling the vehicle ambient light to achieve the target lighting effect based on the second color coordinate value and brightness value corresponding to the pixel.
[0104] In one possible implementation, the mapping module 302 is specifically used for:
[0105] Determine whether the coordinates of the first color are within the common color gamut;
[0106] If the first color coordinate value is within the common color gamut, then the second color coordinate value of the corresponding pixel in the common color gamut is determined to be the first color coordinate value;
[0107] If the first color coordinate value is not within the common color gamut, then determine the target color coordinate value that is closest to the first color coordinate value in the common color gamut, and use the target color coordinate value as the second color coordinate value of the corresponding pixel in the common color gamut.
[0108] In one possible implementation, the generation module 303 is specifically used for:
[0109] The color display data for achieving the target lighting effect of the vehicle ambient light is determined by multiplying the first transformation coefficient with the second color coordinate value corresponding to the pixel. The first transformation coefficient represents the mapping relationship between the color range of the display at the lighting effect design end and the color range of the vehicle ambient light.
[0110] The brightness value corresponding to each pixel is used as the brightness display data for achieving the target lighting effect of the vehicle ambient light.
[0111] In one possible implementation, the acquisition module 301 is further configured to:
[0112] Get the target lighting effect;
[0113] If the target lighting effect is in video format, the target lighting effect is sampled at a preset frame sampling rate to obtain a set of lighting effect images, and the set of lighting effect images contains at least one lighting effect image;
[0114] Based on the position information of the RGB LEDs in the vehicle ambient lighting, pixel sampling is performed on the lighting effect image to obtain the lighting effect image corresponding to the target lighting effect.
[0115] In one possible implementation, the acquisition module 301 is further configured to:
[0116] The target lighting effect can be read from the preset lighting effect storage space corresponding to the lighting effect design end, or it can be obtained by interacting with the vehicle, wherein the vehicle is equipped with a human-computer interaction interface for uploading the target lighting effect.
[0117] The lighting effect device provided in this embodiment can execute the method provided in the above method embodiment. Its implementation principle and technical effect are similar, and will not be described in detail here.
[0118] Figure 4 This is a schematic diagram of the structure of the lighting effect implementation device provided in an embodiment of this application. Figure 4 As shown, the lighting effect implementation device 40 provided in this embodiment includes at least one processor 401 and a memory 402. Optionally, the device 40 further includes a communication interface 403. The processor 401, memory 402, and communication interface 403 are connected via a communication bus 404.
[0119] In a specific implementation, at least one processor 401 executes computer execution instructions stored in memory 402, causing at least one processor 401 to perform the above-described method.
[0120] The specific implementation process of processor 401 can be found in the above method embodiments, and its implementation principle and technical effect are similar. It will not be repeated here.
[0121] In the above embodiments, it should be understood that the processor can be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), etc. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the method disclosed in this invention can be directly implemented by a hardware processor, or implemented by a combination of hardware and software modules within the processor.
[0122] The memory may include random access memory (RAM) and may also include non-volatile memory (NVM), such as at least one disk storage device.
[0123] The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. Buses can be categorized as address buses, data buses, control buses, etc. For ease of illustration, the buses shown in the accompanying drawings are not limited to a single bus or a single type of bus.
[0124] This application also provides a computer program product, including a computer program that, when executed, implements the above-described method.
[0125] This application also provides a computer-readable storage medium storing computer-executable instructions, which, when executed, implement the above-described method.
[0126] The aforementioned readable storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk. The readable storage medium can be any available medium accessible to a general-purpose or special-purpose computer.
[0127] An exemplary readable storage medium is coupled to a processor, enabling the processor to read information from and write information to the readable storage medium. Of course, the readable storage medium can also be a component of the processor. The processor and the readable storage medium can reside in an application-specific integrated circuit (ASIC). Alternatively, the processor and the readable storage medium can exist as discrete components in the device.
[0128] The division of units is merely a logical functional division; in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be indirect coupling or communication connection through some interfaces, devices, or units, and may be electrical, mechanical, or other forms.
[0129] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0130] In addition, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.
[0131] If a function is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this invention, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of the various embodiments of this invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0132] Those skilled in the art will understand that all or part of the steps of the above-described method embodiments can be implemented by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When executed, the program performs the steps of the above-described method embodiments; and the aforementioned storage medium includes various media capable of storing program code, such as ROM, RAM, magnetic disks, or optical disks.
[0133] Finally, it should be noted that other embodiments of the invention will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This invention is intended to cover any variations, uses, or adaptations of the invention that follow the general principles of the invention and include common knowledge or customary techniques in the art not disclosed herein, and is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of the invention is limited only by the appended claims.
Claims
1. A method for achieving the lighting effect of an in-vehicle ambient light, characterized in that, Applied to the execution end, the vehicle ambient light uses red, green, and blue RGB light-emitting diode (LED) particles, and the lighting effect implementation method includes: Obtain the first color coordinate value of the target lighting effect in the standard color space; Based on the first color coordinate value, the corresponding pixel is mapped to a common color gamut to obtain the second color coordinate value of the pixel in the common color gamut. The common color gamut is determined according to the overlapping area of the color rendering range of the display of the execution terminal and the color rendering range of the vehicle ambient light in the standard color space. Based on the second color coordinates and brightness values corresponding to the pixels, first display data is generated to control the vehicle ambient lighting to achieve the target lighting effect.
2. The lighting effect implementation method according to claim 1, characterized in that, The step of mapping the corresponding pixel to a common color gamut based on the first color coordinate value to obtain the second color coordinate value of the pixel in the common color gamut includes: Determine whether the first color coordinate value is within the common color gamut; If the first color coordinate value is within the common color gamut, then the second color coordinate value of the corresponding pixel in the common color gamut is determined to be the first color coordinate value; If the first color coordinate value is not within the common color gamut, then the target color coordinate value that is closest to the first color coordinate value in the common color gamut is determined, and the target color coordinate value is used as the second color coordinate value of the corresponding pixel in the common color gamut.
3. The method for achieving lighting effects according to claim 1 or 2, characterized in that, The execution end is either the lighting effect design end or the vehicle end.
4. The method for achieving lighting effects according to claim 3, characterized in that, The execution end is the lighting effect design end, and the common color gamut is determined according to the following method: Obtain the color rendering range of the display on the lighting effect design end, the color rendering range of the vehicle ambient light, and the color rendering range of the vehicle-mounted display. The overlapping area of the color rendering range of the display, the color rendering range of the vehicle ambient light, and the color rendering range of the vehicle-mounted display in the standard color space is taken as the common color gamut.
5. The method for achieving lighting effects according to claim 4, characterized in that, The method for implementing the lighting effect also includes: Based on the second color coordinate value and brightness value corresponding to the pixel, the vehicle-mounted display generates second display data for the target lighting effect, so that the vehicle-mounted display displays the target lighting effect based on the second display data.
6. The method for achieving lighting effects according to claim 1 or 2, characterized in that, The first display data includes color display data and brightness display data. The step of generating the first display data for controlling the vehicle ambient lighting to achieve the target lighting effect based on the second color coordinates and brightness values corresponding to the pixels includes: The color display data for achieving the target lighting effect of the vehicle ambient light is determined by multiplying the first transformation coefficient with the second color coordinate value corresponding to the pixel point. The first transformation coefficient represents the mapping relationship between the color rendering range of the display at the lighting effect design end and the color rendering range of the vehicle ambient light. The brightness value corresponding to each pixel is used as the brightness display data for the vehicle ambient light to achieve the target lighting effect.
7. The method for achieving lighting effects according to claim 1 or 2, characterized in that, The lighting effect image corresponding to the target lighting effect is obtained through the following method: Get the target lighting effect; If the target lighting effect is in video format, the target lighting effect is sampled at a preset frame sampling rate to obtain a set of lighting effect images, and the set of lighting effect images contains at least one lighting effect image; Based on the position information of the RGB LEDs in the vehicle ambient light, pixel sampling is performed on the lighting effect image to obtain the lighting effect image corresponding to the target lighting effect.
8. A device for realizing the lighting effect of vehicle ambient lighting, characterized in that... Applied to the execution end, the vehicle ambient light uses red, green, and blue RGB light-emitting diode (LED) particles, including: The acquisition module is used to obtain the first color coordinate value of the target lighting effect's color value in the standard color space; The mapping module is used to map the corresponding pixel to a common color gamut based on the first color coordinate value to obtain the second color coordinate value of the pixel in the common color gamut. The common color gamut is determined based on the overlapping area of the color rendering range of the display of the execution terminal and the color rendering range of the vehicle ambient light in the standard color space. The generation module is used to generate first display data for controlling the vehicle ambient light to achieve the target lighting effect based on the second color coordinate value and brightness value corresponding to the pixel.
9. A device for achieving the lighting effect of vehicle ambient lighting, characterized in that, include: Memory, processor; The memory stores computer-executed instructions; The processor executes computer execution instructions stored in the memory, causing the processor to perform the method as described in any one of claims 1-7.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions, which, when executed, are used to implement the method as described in any one of claims 1-7.
11. A computer program product, characterized in that, Includes a computer program, which, when executed, implements the method according to any one of claims 1-7.