Vehicle lighting effect multi-color setting method, electronic device and storage medium

By customizing the vehicle lighting effect color setting method, users can correct or split the color as needed, solving the problem of the inability to customize the lighting effect color in the existing technology, and improving the user experience and the interactivity and entertainment of the vehicle atmosphere lights.

CN114828342BActive Publication Date: 2025-09-12DONGFENG MOTOR CO LTD DONGFENG NISSAN PASSENGER VEHICLE CO
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202210467639.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-04-27
Publication Date
2025-09-12
Estimated Expiration
2042-04-27

AI Technical Summary

Technical Problem

The colors of existing vehicle lighting effects cannot be customized, and users can only select pre-set effects on the vehicle interface, which is quite limited.

Method used

A method for setting multiple colors for vehicle lighting effects is provided. By obtaining the color selected by the user, correcting or splitting it into lighting effect colors, and determining the order of the lighting effect colors, the lighting effect is set using the lighting effect colors and order, including classification according to the three primary color values, setting brightness, and sorting.

Benefits of technology

Users can set different colors in the lighting effects themselves, which improves the interactivity and entertainment of the vehicle's ambient lighting and enhances its overall appeal.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114828342B_ABST
    Figure CN114828342B_ABST
Patent Text Reader

Abstract

The present invention discloses a method, electronic device, and storage medium for setting multiple colors for vehicle lighting effects. The method includes: obtaining a user-selected color; if the user has selected multiple colors, correcting the user-selected color to a lighting effect color and determining a lighting effect color sequence for the lighting effect colors; if the user has selected one color, splitting the user-selected color into multiple lighting effect colors and determining a lighting effect color sequence for the lighting effect colors; and setting the lighting effect using the lighting effect colors and the lighting effect color sequence. The present invention obtains the user-set color and modifies it to meet the lighting effect requirements, thereby enabling users to set different colors in the lighting effect, enhancing the interaction and entertainment between customers and the ambient lighting, and improving the overall appeal.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of automobiles, and in particular to a method for setting multiple colors of vehicle lighting effects, an electronic device, and a storage medium. Background Art

[0002] Some existing vehicles have ambient lights that can display multiple colors and a flowing water effect at the same time. This lighting effect requires setting multiple different colors to achieve the corresponding effect.

[0003] The colors of existing lighting effects are all pre-set by the car manufacturer before leaving the factory. Some car manufacturers will set up a variety of lighting effects with different color combinations for users to choose from.

[0004] However, currently, users can only select pre-set lighting effects on the car's driver interface (DA) and cannot customize each color within the lighting effect. Therefore, users cannot choose different color combinations on their own, which is quite limited. Summary of the Invention

[0005] Based on this, it is necessary to provide a vehicle lighting effect multi-color setting method, electronic device and storage medium to address the technical problem that the existing technology cannot customize each color of the lighting effect.

[0006] The present invention provides a method for setting multiple colors of vehicle lighting effects, comprising:

[0007] Get the user selected color;

[0008] If the user selects multiple colors, correcting the user selected colors to lighting effect colors, and determining a lighting effect color order of the lighting effect colors;

[0009] If the user-selected color is one, splitting the user-selected color into multiple lighting effect colors, and determining a lighting effect color order of the lighting effect colors;

[0010] The lighting effect is set using the lighting effect color and the lighting effect color sequence.

[0011] Furthermore, the step of correcting the user-selected color to a lighting effect color and determining a lighting effect color sequence of the lighting effect colors specifically includes:

[0012] If the user selects multiple colors, then:

[0013] Classifying the plurality of user-selected colors according to the three primary color values ​​to obtain three color systems, each color system having a primary color;

[0014] Correct the user-selected colors in the same color system to obtain lighting effect colors, and set the brightness of each lighting effect color;

[0015] According to the sorting requirements of lighting effects, different color systems are sorted based on the main primary colors of the color system, and different lighting effect colors in the same color system are sorted based on the brightness of the lighting effect colors to obtain the lighting effect color order of each lighting effect color.

[0016] Furthermore, the plurality of user-selected colors are classified according to the three primary color values ​​to obtain three color systems, each of which has a primary color, specifically including:

[0017] The primary color corresponding to the maximum primary color value in each user-selected color is used as the main primary color of the user-selected color;

[0018] User-selected colors with the same primary color are grouped into a color family, each with a primary color.

[0019] Furthermore, the method of correcting the user-selected colors in the same color system to obtain lighting effect colors and setting the brightness of each lighting effect color specifically includes:

[0020] In the same color family:

[0021] Set the primary color value of the primary color of each user-selected color to the primary color maximum value;

[0022] For each user-selected color, the two primary colors other than the primary color are used as secondary colors. The sum of the primary color values ​​of the two secondary colors in the same color system is compared. The secondary color with the larger sum is used as the secondary color to be adjusted, and the primary color value of the secondary color with the smaller sum remains unchanged.

[0023] Correct the primary color value of the secondary primary color to be adjusted for each user-selected color to k*(nm), where k is the preset primary color correction value, n is the number of user-selected colors included in the color system, and m is the sequence number of the user-selected colors in the order in which the user selected the colors, with m being a natural number numbered sequentially starting from 1;

[0024] Set the brightness of each lighting effect color to Y = K1*C1+K2*C2+K3*C3, where C1 is the primary color value of the first primary color of the lighting effect color, K1 is the weight of the first primary color, C2 is the primary color value of the second primary color of the lighting effect color, K2 is the weight of the second primary color, C3 is the primary color value of the third primary color of the lighting effect color, K3 is the weight of the third primary color, and K1+K2+K3=1.

[0025] Going further:

[0026] The method of using the primary color corresponding to the maximum primary color value in each user-selected color as the main primary color of the user-selected color specifically includes:

[0027] For each user-selected color, if there is only one maximum primary color value, the primary color corresponding to the maximum primary color value is used as the main primary color of the user-selected color;

[0028] If there are multiple maximum primary color values, then according to the preset three-primary color priorities, the primary color with the highest priority is selected from the primary colors corresponding to the multiple maximum primary color values ​​as the main primary color of the user-selected color, where the three primary colors have different priorities;

[0029] The method of comparing the sum of the primary color values ​​of two secondary primary colors of the same color system, taking the secondary primary color with the larger sum as the secondary primary color to be adjusted, and keeping the primary color value of the secondary primary color with the smaller sum unchanged, specifically includes:

[0030] Compare the sum of the primary color values ​​of two secondary primary colors of the same color system. If the sum of the primary color values ​​of the two secondary primary colors is not equal, the secondary primary color with the larger sum is used as the secondary primary color to be adjusted, and the primary color value of the secondary primary color with the smaller sum remains unchanged.

[0031] If the sum of the primary color values ​​of the two secondary primary colors is equal, the secondary primary color with a higher priority is used as the secondary primary color to be adjusted, and the primary color value of the secondary primary color with a lower priority remains unchanged.

[0032] Furthermore, according to the lighting effect sorting requirements, different color systems are sorted based on the main primary colors of the color system, and different lighting effect colors within the same color system are sorted based on the brightness of the lighting effect colors to obtain the lighting effect color order of each lighting effect color, specifically including:

[0033] If the lighting effects are sorted from lightest to darkest brightness, then:

[0034] Sort different color schemes by the weight of their primary colors from large to small, and sort different lighting effect colors within the same color scheme by brightness from large to small;

[0035] If the lighting effects are sorted from darkest to lightest brightness, then:

[0036] Sort different color systems according to the weight of the main primary colors of the color system from small to large, and sort different lighting effect colors within the same color system according to brightness from small to large.

[0037] Furthermore, the step of splitting the user-selected color into a plurality of lighting effect colors and determining the lighting effect color sequence of the lighting effect colors specifically includes:

[0038] Determine the maximum, middle, and minimum values ​​of the three primary color values ​​of the user-selected color;

[0039] The primary color corresponding to the maximum value of the three primary colors is set as the primary color, the primary color corresponding to the middle value is set as the secondary color to be adjusted, and the primary color corresponding to the minimum value is set as the unchanged secondary color;

[0040] Split the user-selected color into multiple lighting effect colors, where the primary color value of each lighting effect color is set to the maximum value of the primary color, the primary color value of the unchanged secondary primary color remains unchanged, and the primary color value of the secondary primary color to be adjusted for the i-th lighting effect color is set to Lk*(i-1), where k is the preset primary color correction value, L=k*(N-1), N is the total number of lighting effect colors to be split, and i is a natural number numbered sequentially starting from 1;

[0041] Set the brightness of each lighting effect color to Y = K1*C1+K2*C2+K3*C3, where C1 is the primary color value of the first primary color of the lighting effect color, K1 is the weight of the first primary color, C2 is the primary color value of the second primary color of the lighting effect color, K2 is the weight of the second primary color, C3 is the primary color value of the third primary color of the lighting effect color, K3 is the weight of the third primary color, and K1+K2+K3=1;

[0042] According to the ordering requirements of the lighting effects, the lighting effect color order of the lighting effect colors is determined according to the brightness of the lighting effect colors.

[0043] Furthermore, determining the maximum, middle, and minimum values ​​of the three primary color values ​​of the color selected by the user, setting the primary color corresponding to the maximum value of the three primary color values ​​as the primary primary color, setting the primary color corresponding to the middle value as the secondary primary color to be adjusted, and setting the primary color corresponding to the minimum value as the unchanged secondary primary color, specifically includes:

[0044] If the three primary color values ​​of the color selected by the user are different, then determine the maximum, middle, and minimum values ​​of the three primary color values ​​of the color selected by the user, set the primary color corresponding to the maximum value of the three primary color values ​​as the primary color, set the primary color corresponding to the middle value as the secondary color to be adjusted, and set the primary color corresponding to the minimum value as the unchanged secondary color;

[0045] If the three primary colors of the color selected by the user have the same value, the primary color with the highest priority is selected as the primary color, the primary color with the second highest priority is selected as the secondary color to be adjusted, and the primary color with the lowest priority is selected as the unchanged secondary color. The three primary colors have different priorities.

[0046] If the three primary color values ​​in the user-selected color include a maximum value and two identical primary color values, the primary color corresponding to the maximum value is set as the primary color, and the primary color with the higher priority among the two primary colors with the same primary color values ​​is set as the secondary color to be adjusted, and the primary color with the lower priority is kept unchanged.

[0047] If the three primary color values ​​in the color selected by the user include two identical primary color values ​​and a minimum value, the primary color corresponding to the minimum value will be set as the unchanged secondary primary color, and the primary color with a higher priority among the two primary colors corresponding to the same primary color values ​​will be used as the main primary color, and the primary color with a lower priority will be used as the secondary primary color to be adjusted.

[0048] Furthermore, determining the lighting effect color sequence of the lighting effect colors according to the brightness of the lighting effect colors specifically includes:

[0049] If the lighting effects are sorted from lightest to darkest, then:

[0050] Sort different lighting effect colors by brightness from large to small;

[0051] If the lighting effects are sorted from darkest to lightest brightness, then:

[0052] Sort different lighting effect colors from smallest to largest according to brightness.

[0053] Furthermore, the method further comprises:

[0054] Get color adjustment settings;

[0055] If the color adjustment is set to manual adjustment, the user-selected color is used as the lighting effect color, and the lighting effect color sequence of the lighting effect colors is determined according to the order in which the user selects the user-selected colors;

[0056] If the user selects multiple colors, the user-selected colors are corrected to lighting effect colors, and the lighting effect color order of the lighting effect colors is determined, specifically including: if the color adjustment setting is automatic adjustment, and the user selects multiple colors, the user-selected colors are corrected to lighting effect colors, and the lighting effect color order of the lighting effect colors is determined;

[0057] If the user-selected color is one, the user-selected color is split into multiple lighting effect colors, and the lighting effect color order of the lighting effect colors is determined, specifically including: if the color adjustment is set to automatic adjustment, and the user-selected color is one, the user-selected color is split into multiple lighting effect colors, and the lighting effect color order of the lighting effect colors is determined.

[0058] Furthermore, obtaining the user-selected color specifically includes:

[0059] Displaying a color selection map, where each position in the color selection map corresponds to a color;

[0060] In response to a movement operation of the operation area, controlling the movement of the color beacon in the color selection map;

[0061] In response to a selection operation in the operation area, the color of the position corresponding to the color beacon in the color selection map is used as the user-selected color.

[0062] The present invention provides an electronic device, comprising:

[0063] at least one processor; and,

[0064] a memory communicatively connected to at least one of the processors; wherein,

[0065] The memory stores instructions that can be executed by at least one of the processors, and the instructions are executed by at least one of the processors to enable at least one of the processors to execute the vehicle lighting effect multi-color setting method as described above.

[0066] The present invention provides a storage medium, which stores computer instructions. When a computer executes the computer instructions, it is used to execute all steps of the vehicle lighting effect multi-color setting method as described above.

[0067] The present invention obtains the user-set color and modifies it to meet the lighting effect requirements, thereby enabling users to set different colors in the lighting effect by themselves, enhancing the interaction and entertainment between customers and the atmosphere light, and improving the overall charm. BRIEF DESCRIPTION OF THE DRAWINGS

[0068] Figure 1 This is a workflow diagram of a method for setting multiple colors of vehicle lighting effects according to the present invention;

[0069] Figure 2 This is a workflow diagram of a method for setting multiple colors of vehicle lighting effects in one embodiment of the present invention;

[0070] Figure 3 This is a workflow diagram of a method for setting multiple colors of vehicle lighting effects according to the best embodiment of the present invention;

[0071] Figure 4 This is a flowchart of the algorithm A of the best embodiment of the present invention;

[0072] Figure 5 This is a flowchart of the algorithm B of the best embodiment of the present invention;

[0073] Figure 6 The figure is a schematic diagram of the hardware structure of an electronic device of the present invention. DETAILED DESCRIPTION

[0074] The following further describes specific embodiments of the present invention with reference to the accompanying drawings. Like components are denoted by like reference numerals. It should be noted that the terms "front," "rear," "left," "right," "up," and "down" used in the following description refer to directions in the accompanying drawings, and the terms "inward" and "outward" refer to directions toward or away from the geometric center of a particular component, respectively.

[0075] Example 1

[0076] like Figure 1The figure shows a workflow diagram of a method for setting multiple colors of vehicle lighting effects according to the present invention, including:

[0077] Step S101, obtaining the color selected by the user;

[0078] Step S102: if the user selects multiple colors, correct the user-selected colors to lighting effect colors, and determine the lighting effect color sequence of the lighting effect colors;

[0079] Step S103: if the user-selected color is one, splitting the user-selected color into multiple lighting effect colors, and determining the lighting effect color sequence of the lighting effect colors;

[0080] Step S104 , setting the lighting effect using the lighting effect color and the lighting effect color sequence.

[0081] Specifically, the present invention can be applied to an electronic control unit (ECU) of a vehicle.

[0082] The present invention provides users with the ability to customize parameters for vehicle lights, such as ambient lighting, through software. Customized parameters include one or more user-selected colors. The user can select colors in various ways, thereby triggering step S101. The user-selected colors may be one or more. Depending on the lighting effect desired, the user can set a different number of colors as user-selected colors.

[0083] Then, if the user selects multiple colors, step S102 is executed to program the colors selected by the user, modify them into lighting effect colors, and determine the order of the lighting effect colors. If the user selects only one color, step S103 is executed to split the user-selected color into multiple lighting effect colors and determine the order of the lighting effect colors.

[0084] Finally, step S104 is executed to set the lighting effect and then activate the vehicle lights, such as the ambient light. For lighting effects that use multiple colors, the lighting effect color sequence is used to set the order in which the corresponding lighting effect colors are lit.

[0085] The in-car display is divided into intervals according to length, each interval corresponds to a color display, and then the lighting effect colors are selected and arranged periodically in sequence.

[0086] The number of colors set by the user can be less than or equal to the maximum number of lighting effect colors.

[0087] For example, if the number of lighting effect colors is 7 and the customer only selects 2 colors, the algorithm adjusts the colors and order, and the interior ambient lights display them periodically (i.e., color 1, color 2, color 1, color 2, etc.). If the user selects 7 colors, the algorithm adjusts the colors and order, and the interior ambient lights display them periodically (i.e., color 1, color 2, color 3, color 4, color 5, color 6, color 7, color 1, color 2, etc.).

[0088] When the user selects more than 7 options, a prompt will appear saying that all options are full.

[0089] Therefore, the variety of color combinations available for car lights, such as ambient lights, has been greatly improved, and can be freely selected within the RGB value of 256*256*256. The number of colors set by the user is preferably 1-7.

[0090] The present invention obtains the user-set color and modifies it to meet the lighting effect requirements, thereby enabling users to set different colors in the lighting effect by themselves, enhancing the interaction and entertainment between customers and the atmosphere light, and improving the overall charm.

[0091] Example 2

[0092] like Figure 2 FIG. 1 is a flowchart of a method for setting multiple colors of vehicle lighting effects according to an embodiment of the present invention, comprising:

[0093] Step S201 : Display a color selection map, where each position in the color selection map corresponds to a color.

[0094] Step S202 : controlling the movement of a color beacon in the color selection map in response to a movement operation of the operation area.

[0095] Step S203 , in response to the selection operation of the operation area, the color of the position corresponding to the color beacon in the color selection map is used as the user-selected color.

[0096] Step S204: Acquire color adjustment settings.

[0097] Step S205: If the color adjustment is set to automatic adjustment, and if the user selects multiple colors, then:

[0098] Step S206 , classifying the plurality of user-selected colors according to the three primary color values ​​to obtain three color systems, each of which has a primary color.

[0099] In one embodiment, the plurality of user-selected colors are classified according to the three primary color values ​​to obtain three color systems, each of which has a primary color, specifically including:

[0100] The primary color corresponding to the maximum primary color value in each user-selected color is used as the main primary color of the user-selected color;

[0101] User-selected colors with the same primary color are grouped into a color family, each with a primary color.

[0102] In step S207 , the user-selected colors in the same color system are corrected to obtain lighting effect colors, and the brightness of each lighting effect color is set.

[0103] In one embodiment, the method of correcting the user-selected colors in the same color system to obtain lighting effect colors and setting the brightness of each lighting effect color specifically includes:

[0104] In the same color family:

[0105] Set the primary color value of each user-selected color's primary color to the primary color maximum value;

[0106] For each user-selected color, the two primary colors other than the primary color are used as secondary colors. The sum of the primary color values ​​of the two secondary colors in the same color system is compared. The secondary color with the larger sum is used as the secondary color to be adjusted, and the primary color value of the secondary color with the smaller sum remains unchanged.

[0107] Correct the primary color value of the secondary primary color to be adjusted for each user-selected color to k*(nm), where k is the preset primary color correction value, n is the number of user-selected colors included in the color system, and m is the sequence number of the user-selected colors in the order in which the user selected the colors, with m being a natural number numbered sequentially starting from 1;

[0108] Set the brightness of each lighting effect color to Y = K1*C1+K2*C2+K3*C3, where C1 is the primary color value of the first primary color of the lighting effect color, K1 is the weight of the first primary color, C2 is the primary color value of the second primary color of the lighting effect color, K2 is the weight of the second primary color, C3 is the primary color value of the third primary color of the lighting effect color, K3 is the weight of the third primary color, and K1+K2+K3=1.

[0109] In one embodiment,

[0110] The method of using the primary color corresponding to the maximum primary color value in each user-selected color as the main primary color of the user-selected color specifically includes:

[0111] For each user-selected color, if there is only one maximum primary color value, the primary color corresponding to the maximum primary color value is used as the main primary color of the user-selected color;

[0112] If there are multiple maximum primary color values, then according to the preset three-primary color priorities, the primary color with the highest priority is selected from the primary colors corresponding to the multiple maximum primary color values ​​as the main primary color of the user-selected color, where the three primary colors have different priorities;

[0113] The method of comparing the sum of the primary color values ​​of two secondary primary colors of the same color system, taking the secondary primary color with the larger sum as the secondary primary color to be adjusted, and keeping the primary color value of the secondary primary color with the smaller sum unchanged, specifically includes:

[0114] Compare the sum of the primary color values ​​of two secondary primary colors of the same color system. If the sum of the primary color values ​​of the two secondary primary colors is not equal, the secondary primary color with the larger sum is used as the secondary primary color to be adjusted, and the primary color value of the secondary primary color with the smaller sum remains unchanged.

[0115] If the sum of the primary color values ​​of the two secondary primary colors is equal, the secondary primary color with a higher priority is used as the secondary primary color to be adjusted, and the primary color value of the secondary primary color with a lower priority remains unchanged.

[0116] In step S208 , according to the lighting effect sorting requirements, different color systems are sorted based on the primary colors of the color system, and different lighting effect colors within the same color system are sorted based on the brightness of the lighting effect colors to obtain a lighting effect color order for each lighting effect color.

[0117] In one embodiment, the lighting effect color order of each lighting effect color is obtained by sorting different color systems based on the main primary colors of the color system and sorting different lighting effect colors within the same color system based on the brightness of the lighting effect color according to the lighting effect sorting requirements, specifically including:

[0118] If the lighting effects are sorted from lightest to darkest brightness, then:

[0119] Sort different color schemes by the weight of their primary colors from large to small, and sort different lighting effect colors within the same color scheme by brightness from large to small;

[0120] If the lighting effects are sorted from darkest to lightest brightness, then:

[0121] Sort different color systems according to the weight of the main primary colors of the color system from small to large, and sort different lighting effect colors within the same color system according to brightness from small to large.

[0122] Step S209: If the color adjustment is set to automatic adjustment and if the user-selected color is one, split the user-selected color into multiple lighting effect colors, and determine the lighting effect color sequence of the lighting effect colors.

[0123] In one embodiment, splitting the user-selected color into multiple lighting effect colors and determining the lighting effect color order of the lighting effect colors specifically includes:

[0124] Determine the maximum, middle, and minimum values ​​of the three primary color values ​​of the user-selected color;

[0125] The primary color corresponding to the maximum value of the three primary colors is set as the primary color, the primary color corresponding to the middle value is set as the secondary color to be adjusted, and the primary color corresponding to the minimum value is set as the unchanged secondary color;

[0126] Split the user-selected color into multiple lighting effect colors, where the primary color value of each lighting effect color is set to the maximum value of the primary color, the primary color value of the unchanged secondary primary color remains unchanged, and the primary color value of the secondary primary color to be adjusted for the i-th lighting effect color is set to Lk*(i-1), where k is the preset primary color correction value, L=k*(N-1), N is the total number of lighting effect colors to be split, and i is a natural number numbered sequentially starting from 1;

[0127] Set the brightness of each lighting effect color to Y = K1*C1+K2*C2+K3*C3, where C1 is the primary color value of the first primary color of the lighting effect color, K1 is the weight of the first primary color, C2 is the primary color value of the second primary color of the lighting effect color, K2 is the weight of the second primary color, C3 is the primary color value of the third primary color of the lighting effect color, K3 is the weight of the third primary color, and K1+K2+K3=1;

[0128] According to the ordering requirements of the lighting effects, the lighting effect color order of the lighting effect colors is determined according to the brightness of the lighting effect colors.

[0129] In one embodiment, determining the maximum, middle, and minimum values ​​of the three primary color values ​​of the user-selected color, setting the primary color corresponding to the maximum value of the three primary color values ​​as the primary color, setting the primary color corresponding to the middle value as the secondary color to be adjusted, and setting the primary color corresponding to the minimum value as the unchanged secondary color, specifically includes:

[0130] If the three primary color values ​​of the color selected by the user are different, then determine the maximum, middle, and minimum values ​​of the three primary color values ​​of the color selected by the user, set the primary color corresponding to the maximum value of the three primary color values ​​as the primary color, set the primary color corresponding to the middle value as the secondary color to be adjusted, and set the primary color corresponding to the minimum value as the unchanged secondary color;

[0131] If the three primary colors of the color selected by the user have the same value, the primary color with the highest priority is selected as the primary color, the primary color with the second highest priority is selected as the secondary color to be adjusted, and the primary color with the lowest priority is selected as the unchanged secondary color. The three primary colors have different priorities.

[0132] If the three primary color values ​​in the user-selected color include a maximum value and two identical primary color values, the primary color corresponding to the maximum value is set as the primary color, and the primary color with the higher priority among the two primary colors with the same primary color values ​​is set as the secondary color to be adjusted, and the primary color with the lower priority is kept unchanged.

[0133] If the three primary color values ​​in the color selected by the user include two identical primary color values ​​and a minimum value, the primary color corresponding to the minimum value will be set as the unchanged secondary primary color, and the primary color with a higher priority among the two primary colors corresponding to the same primary color values ​​will be used as the main primary color, and the primary color with a lower priority will be used as the secondary primary color to be adjusted.

[0134] In one embodiment, determining the lighting effect color order of the lighting effect colors according to the brightness of the lighting effect colors specifically includes:

[0135] If the lighting effects are sorted from lightest to darkest brightness, then:

[0136] Sort different lighting effect colors from highest to lowest according to brightness;

[0137] If the lighting effects are sorted from darkest to lightest brightness, then:

[0138] Sort different lighting effect colors from smallest to largest according to brightness.

[0139] Step S210: If the color adjustment is set to manual adjustment, the user-selected color is used as the lighting effect color, and the lighting effect color sequence of the lighting effect colors is determined according to the order in which the user selects the user-selected color.

[0140] Step S211 , setting the lighting effect using the lighting effect color and the lighting effect color sequence.

[0141] Specifically, step S201 is first executed to display a color selection chart on the vehicle's display. Colors are represented using the red, green, and blue (RGB) primary color model. The color selection chart displays colors corresponding to RGB values. RGB values ​​consist of 256*256*256 values. Each point in the color selection chart corresponds to a color, and each color corresponds to an RGB value. An RGB value is a three-dimensional coordinate (R, G, B), with each coordinate corresponding to a color coordinate value. The first coordinate is the R primary color value, the second coordinate is the G primary color value, and the third coordinate is the B primary color value. In addition, detailed RGB value settings can be made on the vehicle's display (DA) screen, and the values ​​can be set within a 256*256*256 range. The user then executes steps S202 and S203 to select a color using the steering wheel switch touch area. The advantage of the steering wheel switch touch area is that it can distinguish between slide, microtouch, and pressure triggers (pressure sensing), and provides vibration feedback to enhance interactive perception. The steering wheel switch touch area can be used as the operation area. The system detects the user's movements within the control area and controls the color beacon to follow a corresponding movement trajectory within the color selection map. Once the user has chosen a color, they can confirm it by clicking or double-clicking. The system records the color at the corresponding position of the color beacon as the user-selected color. The user can select multiple colors by repeating steps S202 and S203 until they have selected enough user-selected colors.

[0142] Then, in step S204, the color adjustment settings are obtained. The color adjustment settings can be entered by the user on the vehicle computer screen or through the vehicle computer buttons. The color adjustment settings include automatic adjustment and manual adjustment. If the color adjustment is automatic, steps S205 to S209 are triggered, and the system performs the adjustment. If the color adjustment is manual, step S210 is triggered, and the user setting is fully adopted. The user-selected color is used as the lighting effect color, and the lighting effect color sequence is determined according to the order in which the user selected the user-selected colors.

[0143] If the color adjustment is set to automatic adjustment, the corresponding algorithm is selected according to the number of colors selected by the user. If the color adjustment is set to automatic adjustment and the user selected multiple colors, steps S205 to S208 are executed to perform corresponding adjustments. If the color adjustment is set to automatic adjustment and the user selected one color, step S209 is executed to split the user selected colors.

[0144] If the color adjustment is set to automatic adjustment and if the user selects multiple colors, step S206 is first performed to divide the colors.

[0145] When dividing color systems, colors of the same color system are sorted together for the purpose of displaying the ambient lighting effect, and colors within the same color system are sorted by brightness to avoid mixing different colors and creating a sense of clutter. The specific division method is as follows:

[0146] The three primary colors are red, green, and blue, so the three color systems are the R (red), G (green), and B (blue) color systems. For each user-selected color, the maximum primary color value is set as the primary color of the user-selected color. Color systems are divided according to the primary color, and user-selected colors with the same primary color are grouped into a color system. Each color system has a primary color. For example, if a user-selected color is (175, 0, 120), the maximum primary color value 175 corresponds to the R primary color, so it is classified as the R color system. If a user-selected color is (0, 175, 110), the maximum primary color value 175 corresponds to the G primary color, so it is classified as the G color system. If a user-selected color is (0, 125, 200), the maximum primary color value 200 corresponds to the B primary color, so it is classified as the B color system.

[0147] If the selected color's RGB coordinates contain the same primary color value, the color is selected based on the priority of the three primary colors. The priority of the three primary colors is green (G) > red (R) > blue (B). For example, the RGB coordinates of (110, 110, 0) are classified as the G color system; (110, 0, 110) are classified as the R color system.

[0148] Then, in step S207 , the user-selected colors in the same color system are corrected to obtain lighting effect colors, and the brightness of each lighting effect color is set.

[0149] First, within the same color system, the primary color value of each user-selected color, U, is set to the maximum primary color value to maximize brightness. Preferably, the maximum primary color value is 255. Therefore, the primary color value of each user-selected color is set to 255. For example, the R value in the R color system is set to 255, the G value in the G color system is set to 255, and the B value in the B color system is set to 255. Setting the maximum value to 255 is to better enhance color brightness; too dark colors will not display well under ambient lighting.

[0150] Then, the two primary colors other than the primary color in each user-selected color are taken as the secondary colors V and W. The sum of the secondary colors V and W in the same color system is calculated. For example, for a color system containing N user-selected colors, calculate V1+V2+...+V n , calculate W1+W2+...+W nThe larger the sum, the greater the impact on the color, so choose a larger value, compare the sum of the secondary primary colors V and W, and use the secondary primary color with the larger sum as the secondary primary color to be adjusted. The primary color value of the secondary primary color with the smaller sum remains unchanged. For example, if V1+V2+...+V n >W1+W2+...+W n , then the secondary primary color V is used as the secondary primary color to be adjusted, and the primary color value of the secondary primary color W remains unchanged.

[0151] If the sum of V and W is the same, the primary color is selected based on its priority. For example, the secondary primary color (intermediate value) to be adjusted is selected in the order of G>R>B. That is, the primary color with the highest priority is selected as the secondary primary color to be adjusted.

[0152] The purpose of selecting the maximum value for adjustment is to select the value with the greatest impact on brightness, ensuring a more optimized brightness ranking among different color families (i.e., the overall ranking is also based on brightness as much as possible). Similarly, the larger secondary primary color is selected for adjustment for the same reason.

[0153] Correct the primary color value of the secondary primary color to be adjusted for each user-selected color to k*(nm), where k is the preset primary color correction value, n is the number of user-selected colors included in the color system, and m is the sequence number of the user-selected colors in the order in which the user selected the colors, and m is a natural number numbered sequentially starting from 1.

[0154] Preferably, K*(n-1) cannot exceed the primary color maximum value of 255.

[0155] For example, if the secondary color to be adjusted is the secondary color V, then V1 = k(n-1), V2 = k*(n-2)...V n = 0. All W values ​​remain unchanged. The user-selected colors are sorted in the order in which they were selected by the user. Their sequence numbers begin at 1. The range of k is preferably between 20 and 30, and preferably 25. The lighting effect color is obtained by adjusting the primary color of the user-selected color and the secondary color to be adjusted.

[0156] Then, set the brightness of each lighting effect color to Y = K1*C1+K2*C2+K3*C3, where C1 is the primary color value of the first primary color of the lighting effect color, K1 is the weight of the first primary color, C2 is the primary color value of the second primary color of the lighting effect color, K2 is the weight of the second primary color, C3 is the primary color value of the third primary color of the lighting effect color, K3 is the weight of the third primary color, and K1+K2+K3 = 1. The values ​​of K1, K2, and K3 can be calibrated experimentally.

[0157] Finally, according to the sorting requirements of the lighting effects, different color systems are sorted based on the main primary colors of the color system, and different lighting effect colors in the same color system are sorted based on the brightness of the lighting effect colors to obtain the lighting effect color order of each lighting effect color.

[0158] If the lighting effects are sorted from lightest to darkest brightness, then:

[0159] Sort different color systems by the weight of their primary colors from large to small;

[0160] If the lighting effects are sorted from darkest to lightest brightness, then:

[0161] Sort the different color schemes by the weight of their primary colors, from small to large. The higher the weight, the greater the contribution to brightness, so that the color combinations of different color schemes are sorted in order of brightness as much as possible.

[0162] For example, if the first primary color is R, the second primary color is G, and the third primary color is B, where K2>K1>K3, and the lighting effect sorting requirement is to sort from lightest to darkest brightness, then the different color systems are sorted in the order of GRB. If the lighting effect sorting requirement is to sort from darkest to lightest brightness, then the different color systems are combined and sorted in the order of BRG.

[0163] Within the same color system, different lighting effects are sorted by brightness. If the lighting effect sorting requirement is from lightest to darkest, then the lighting effect is sorted from highest to lowest brightness. If the lighting effect sorting requirement is from darkest to lightest, then the lighting effect is sorted from lowest to highest brightness.

[0164] Step S209 : in the case where the user selects only one color, the user-selected color is split into a plurality of lighting effect colors, and a lighting effect color sequence of the lighting effect colors is determined.

[0165] First, the maximum, middle, and minimum values ​​of the three primary color values ​​of the user-selected color are determined.

[0166] Then, the primary color corresponding to the maximum value of the three primary colors is set as the primary color, the primary color corresponding to the middle value is set as the secondary color to be adjusted, and the primary color corresponding to the minimum value is set as the unchanged secondary color.

[0167] If the values ​​of the three primary colors are the same, the selection is made according to the priority of the three primary colors. For example, the selection is made in the order of G>R>B.

[0168] If the three primary colors of the color selected by the user have the same value, the primary color with the highest priority is selected as the primary color, the primary color with the second highest priority is selected as the secondary color to be adjusted, and the primary color with the lowest priority is selected as the unchanged secondary color. The three primary colors have different priorities.

[0169] If the three primary color values ​​in the user-selected color include a maximum value and two identical primary color values, the primary color corresponding to the maximum value is set as the primary color, and the primary color with the higher priority among the two primary colors with the same primary color values ​​is set as the secondary color to be adjusted, and the primary color with the lower priority is kept unchanged.

[0170] If the three primary color values ​​in the color selected by the user include two identical primary color values ​​and a minimum value, the primary color corresponding to the minimum value will be set as the unchanged secondary primary color, and the primary color with a higher priority among the two primary colors corresponding to the same primary color values ​​will be used as the main primary color, and the primary color with a lower priority will be used as the secondary primary color to be adjusted.

[0171] The user-selected color is then split into multiple lighting effect colors, where the primary color value U of the main primary color of each lighting effect color is set to the primary color maximum value, the primary color value W of the unchanged secondary primary color remains unchanged, and the primary color value V of the secondary primary color to be adjusted of the i-th lighting effect color is set to Lk*(i-1), where k is the preset primary color correction value, L=k*(N-1), N is the total number of lighting effect colors to be split, and i is a natural number numbered sequentially starting from 1.

[0172] For example, the user-selected color is split into N lighting effect colors. The primary color value U of the main primary color of each lighting effect color is set to the primary color maximum value. Preferably, the primary color maximum value is 255. Therefore, preferably, the primary color value U of the main primary color of each lighting effect color is set to 255. Then, the primary color value W of the unchanged secondary primary color of each lighting effect color remains unchanged. The primary color value V of the secondary primary color to be adjusted of the i-th lighting effect color is set to Lk*(i-1), L=k*(N-1). The range of k is preferably between 20ˉ30, and preferably 25. Therefore, when the user-selected color is split into 7 lighting effect colors, the primary color value V of the secondary primary color to be adjusted of the i-th lighting effect color is set to 150-25*(i-1). The V value of the first lighting effect color is 150, and then starts from 150 and decreases by 25 until the V value of the seventh lighting effect color is 0.

[0173] Then, set the brightness of each lighting effect color to Y = K1*C1+K2*C2+K3*C3, where C1 is the primary color value of the first primary color of the lighting effect color, K1 is the weight of the first primary color, C2 is the primary color value of the second primary color of the lighting effect color, K2 is the weight of the second primary color, C3 is the primary color value of the third primary color of the lighting effect color, K3 is the weight of the third primary color, and K1+K2+K3=1.

[0174] Finally, according to the lighting effect sorting requirements and the brightness of the lighting effect colors, the lighting effect color order of the lighting effect colors is determined.

[0175] If the lighting effects are sorted from lightest to darkest brightness, then:

[0176] Sort different lighting effect colors from highest to lowest according to brightness;

[0177] If the lighting effects are sorted from darkest to lightest brightness, then:

[0178] Sort different lighting effect colors from smallest to largest according to brightness.

[0179] If the user selects manual adjustment, step S201 is executed to use the user-selected color as the lighting effect color, and determine the lighting effect color sequence of the lighting effect colors according to the order in which the user selects the user-selected colors.

[0180] Finally, step S211 is executed to set the lighting effect using the lighting effect color and the lighting effect color sequence.

[0181] The lighting effect color includes the three primary color values ​​of the lighting effect color and the brightness of the lighting effect color. The three primary color values ​​of the lighting effect color and the brightness of the lighting effect color are set in the vehicle light controller, and the lighting effect colors are set in sequence to light up the corresponding lighting effect colors.

[0182] This embodiment provides an automatic adjustment function, automatically adjusting multiple user-selected colors to suit lighting effect requirements, and automatically splitting a single user-selected color to meet multiple lighting effect color requirements. At the same time, a manual adjustment function is provided to meet user needs.

[0183] like Figure 3 The figure shows a workflow diagram of a method for setting multiple colors of vehicle lighting effects according to a preferred embodiment of the present invention. The total number of required lighting effect colors is 7. The method includes:

[0184] Step S301 , in response to a user turning on a multi-color control signal, displaying an interface including a color selection chart, the color selection chart including all RGB values;

[0185] Step S302, the color beacon is at the center position;

[0186] Step S303: a signal triggering a hand placement in the operating area;

[0187] Step S304: Obtain a sliding or micro-touch signal. In the interface, a color beacon indicates the current color.

[0188] Step S305: If a single-click signal is received, execute step S306; if a two-finger sliding signal is detected and the sliding distance is ≥ 20 mm, execute step S312;

[0189] Step S306: If the pressure value exceeds the threshold, the color specified by the current color beacon is selected as the user-selected color and step S307 is executed; otherwise, step S305 is executed and the signal trigger is continued;

[0190] Step S307: If the number of colors selected by the user is ≥ 7, then execute step S310; otherwise, execute step S308;

[0191] Step S308, determining whether a signal of double-clicking the OK key is obtained, if yes, executing step S309, otherwise executing step S303;

[0192] Step S309: Determine whether the double-click interval meets the threshold and whether the double-click pressure value exceeds the threshold. If yes, execute step S313; otherwise, execute step S308.

[0193] Step S310: When the total number of colors reaches the upper limit, double-click the OK button;

[0194] Step S311: If a double-click of the OK key is detected within 10 seconds, execute step S309; ​​if a two-finger sliding signal is detected within 10 seconds, execute step S312; if no signal is detected within 10 seconds, execute step S313 directly;

[0195] Step S312: If the total number of selected colors is ≥ 1, cancel the last selected color and execute step S302; otherwise, execute step S302 directly;

[0196] Step S313, determine whether the automatic sorting fine-tuning function is enabled, if yes, execute step S314, otherwise execute step S317;

[0197] Step S314: If the total number of colors is 1, then go to step S315; if 2≤total number of colors≤7, then go to step S316;

[0198] Step S315: Obtain the RGB value of the color selected by the user, sort it according to Algorithm B, obtain parameters such as lighting effects, and execute step S318;

[0199] Step S316: Obtain the RGB value of the color selected by the user, adjust the RGB and sorting according to Algorithm A, obtain parameters such as lighting effects, and execute step S318;

[0200] Step S317, obtaining the RGB value of the color selected by the user, obtaining the order of the colors selected by the user, obtaining parameters such as lighting effects, and executing step S318;

[0201] Step S318: Activate the lighting effect.

[0202] Specifically, the user places their hand in the circular operating area, and the touch screen senses their position and sliding, showing the current position on the color selection map (displayed on the DA screen). Then they click to confirm the selected color (pressure sensing, only confirming when exceeding the threshold), and can select up to 7 colors. The lighting effect is ambient lighting.

[0203] Users can choose whether to enable automatic sorting fine-tuning. If enabled, adjustments will be made based on the color selected by the customer (algorithm A and algorithm B), showing more suitable and comfortable colors, and displayed in the set order to enhance the atmosphere.

[0204] like Figure 4 Shown is a workflow diagram of Algorithm A of the preferred embodiment of the present invention, comprising:

[0205] Step S401: Obtain the color coordinates and the maximum value in RGB for each user-selected color, and classify the maximum values ​​corresponding to RGB into three color systems. If there are two maximum values ​​with the same value, select the maximum value in the order of G, R, and B.

[0206] Step S402: For each color system, the maximum value is U, and the other two parameter values ​​are V and W. The number n of colors selected by the user in the color system is obtained, and the colors are numbered 1, 2, ..., n according to the order selected by the user.

[0207] Step S403, adjust U to 255;

[0208] Step S404, calculate V1+V2+...+V n and W1+W2+...+W n ;

[0209] Step S405: If V1+V2+...+V n =W1+W2+...+W n , then execute step S406, otherwise execute step S407;

[0210] Step S406: According to the priority order of G, R, and B, if the priority corresponding to V is higher than the priority corresponding to W, then execute step S408; otherwise, execute step S409;

[0211] Step S407, if V1+V2+...+V n >W1+W2+...+W n , then execute step S408, otherwise execute step S409;

[0212] Step S408, take V1=25(n-1), V2=25*(n-2)...V n =0; each W value remains unchanged, and step S410 is executed;

[0213] Step S409, take W1=25(n-1), W2=25*(n-2)...W n =0; each V value remains unchanged;

[0214] Step S410, the brightness Y = K1*R + K2*G + K3*B, and the colors are sorted in ascending order of brightness;

[0215] Step S411, the three major categories are arranged in the order where the colors correspond to G, R, B respectively according to the maximum value (from the brightest to the darkest in terms of brightness);

[0216] Step S412, obtain parameters such as lighting effects and brightness.

[0217] Algorithm A is used to adjust multiple user-selected colors. Algorithm A obtains the RGB coordinates of each color and divides them into 3 color systems according to the maximum value among them. In each color system, for example, in the category where the R value is the largest and the total number is 3, the R values are all adjusted to 255. For the G and B values, compare the sums. If the sum of the G values > the sum of the B values, the B values of each color remain unchanged, and the G values decrease successively as 50, 25, 0 to obtain the lighting effect color. If the G value < the sum of the B values, the G values of each color remain unchanged, and the B values decrease successively as 50, 25, 0 to obtain the lighting effect color. If the G value = the sum of the B values, select the G value for adjustment in the order of G, R, B. The B values of each color remain unchanged, and the G values decrease successively as 50, 25, 0 to obtain the lighting effect color. Then, the lighting effect colors are sorted in ascending order of brightness and lit one by one, and the brightness Y = K1*R + K2*G + K3*B.

[0218] Specifically, as an example, when performing step S401, obtaining the user-selected colors includes: (0, 125, 200), (100, 125, 175), (0, 175, 110), (0, 150, 0), (175, 0, 120), (175, 150, 0). Among these coordinates, the first one is the R value, the second one is the G value, and the third one is the B value. Extract the maximum values of RGB respectively and divide them into three categories according to the maximum values:

[0219] R color system with the largest R value: (I75, 0, 120), (175, 150, 0);

[0220] G color system with the largest G value: (0, 175, 110), (120, 150, 0);

[0221] B color system with the largest B value: (0, 125, 200), (100, 125, 175).

[0222] Execute step S402. For each color system, its maximum value is U, and the other two parameter values are V and W. Obtain the number n of user-selected colors in this color system, and number the colors as 1, 2...n according to the user selection order.

[0223] Execute step S403, and adjust all U to 255, then:

[0224] R color system: (255, 0, 120), (255, 150, 0);

[0225] G color system: (0, 255, 110), (120, 255, 0);

[0226] B color system: (0, 125, 255), (100, 125, 255).

[0227] Execute steps S404 to S407, and calculate V1 + V2 +... + V n and W1 + W2 +... + W n . Where:

[0228] For the R color system, V1 + V2 = 0 + 150 = 150, W1 + W2 = 120 + 0 = 120, that is, V1 + V2 > W1 + W2, then the W values of each color remain unchanged, and the V values are arranged in a decreasing sequence of 25, obtaining the lighting effect colors: (255, 25, 120), (255, 0, 0);

[0229] For the G color system, V1 + V2 = 0 + 120 = 120, W1 + W2 = 110 + 0 = 110, that is, V1 + V2 > W1 + W2, then the W values of each color remain unchanged, and the V values are arranged in a decreasing sequence of 2, obtaining the lighting effect colors: (25, 255, 110), (0, 255, 0);

[0230] For the B color system, V1 + V2 = 0 + 100 = 100, W1 + W2 = 125 + 125 = 250, that is, V1 + V2 < W1 + W2, then the V values of each color remain unchanged, and the W values are arranged in a decreasing sequence of 25, obtaining the lighting effect colors: (0, 25, 255), (100, 0, 255).

[0231] Then execute step S408 to calculate the brightness Y = K1 * R + K2 * G + K3 * B of each lighting effect color.

[0232] Then execute step S409 for sorting, where K2 > K1 > K3. The sorting requirement for the lighting effect is to sort by brightness from light to deep. Therefore, the different color systems are arranged in the order of G color system, R color system, B color system, and the same color system is arranged in the order of decreasing brightness value.

[0233] Therefore, the arrangement order in the same color system is:

[0234] R color system: (255, 25, 120), (255, 0, 0);

[0235] G color system: (25, 255, 110), (0, 255, 0);

[0236] B color system: (100,0,255), (0,25,255).

[0237] The final order of arrangement is:

[0238] (25,255,110), (0,255,0), (255,25,120), (255,0,0), (100,0,255), (0,25,255).

[0239] like Figure 5 Shown is a workflow diagram of Algorithm B of the preferred embodiment of the present invention, comprising:

[0240] Step S501: Get the RGB values ​​of the selected color and analyze the maximum, middle, and minimum values ​​in RGB. The maximum value is used as the U value, the middle value is used as the V value, and the minimum value is used as the W value. If there are identical values, the U value, V value, and W value are determined in the order of priority of G, R, and B.

[0241] For example, (110,110,110), the maximum value is G, the middle value is R, and the minimum value is B;

[0242] Step S502, modify the U and V values, and keep the W value unchanged, setting U=255, V=150, and W unchanged as the initial color colorN, i=0;

[0243] Step S503, let i=i+1, the i-th colorN i The color coordinates are U=255, V=150-25*(i-1), and W remains unchanged;

[0244] Step S504: If i≥7, execute step S505; otherwise, execute step S503;

[0245] Step S505: Get seven lighting effect colors, light them up in order from light to dark, and light up in order from light to dark. Brightness Y = K1*R+K2*G+K3*B.

[0246] Step S506, obtaining parameters such as lighting effect and brightness.

[0247] If the user selects only one color in multi-color mode and chooses automatic adjustment, algorithm B is executed, adjusting the maximum RGB value to 255 and the middle value to 150, setting this as the lightest color. The middle value is then reduced by 25 at a time until it reaches 0. This process stops when all seven colors are present. The seven colors are then illuminated in order from lightest to darkest, with brightness Y = K1*R+K2*G+K3*B.

[0248] like Figure 6FIG. 1 is a schematic diagram of the hardware structure of an electronic device of the present invention, comprising:

[0249] at least one processor 601; and,

[0250] A memory 602 in communication with at least one of the processors 601; wherein,

[0251] The memory 602 stores instructions that can be executed by at least one of the processors. The instructions are executed by at least one of the processors to enable the at least one processor to execute the vehicle lighting effect multi-color setting method as described above.

[0252] Figure 6 A processor 601 is taken as an example.

[0253] The electronic device may further include an input device 603 and a display device 604 .

[0254] The processor 601, the memory 602, the input device 603 and the display device 604 may be connected via a bus or other means, with the bus connection being used as an example in the figure.

[0255] The memory 602 is a non-volatile computer-readable storage medium that can be used to store non-volatile software programs, non-volatile computer executable programs, and modules, such as the program instructions / modules corresponding to the vehicle lighting effect multi-color setting method in the embodiment of the present application, for example, Figure 1 、 Figure 2 The processor 601 executes various functional applications and data processing by running the non-volatile software programs, instructions and modules stored in the memory 602, that is, implementing the vehicle lighting effect multi-color setting method in the above embodiment.

[0256] The memory 602 may include a program storage area and a data storage area. The program storage area may store an operating system and application programs required for at least one function; the data storage area may store data created based on the use of the vehicle lighting effect multi-color setting method. Furthermore, the memory 602 may include high-speed random access memory and non-volatile memory, such as at least one disk storage device, flash memory device, or other non-volatile solid-state storage device. In some embodiments, the memory 602 may optionally include a memory remotely located relative to the processor 601. These remote memories may be connected to a device executing the vehicle lighting effect multi-color setting method via a network. Examples of such networks include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0257] The input device 603 can receive user clicks and generate signal input related to user settings and function control of the vehicle lighting effect multi-color setting method. The display device 604 can include a display device such as a display screen.

[0258] The one or more modules are stored in the memory 602 and, when executed by the one or more processors 601 , execute the vehicle lighting effect multi-color setting method in any of the above method embodiments.

[0259] The present invention obtains the user-set color and modifies it to meet the lighting effect requirements, thereby enabling users to set different colors in the lighting effect by themselves, enhancing the interaction and entertainment between customers and the atmosphere light, and improving the overall charm.

[0260] An embodiment of the present invention provides a storage medium that stores computer instructions. When a computer executes the computer instructions, it is used to execute all steps of the vehicle lighting effect multi-color setting method as described above.

[0261] The above-described embodiments merely illustrate several implementations of the present invention, and while their descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the present invention. It should be noted that a person skilled in the art would be able to make numerous variations and improvements without departing from the spirit of the present invention, all of which fall within the scope of protection of the present invention. Therefore, the scope of protection of the present invention shall be determined by the appended claims.

Claims

1. A method for setting multiple colors of vehicle lighting effects, characterized in that: include: Get the user selected color; If the user selects multiple colors, the user selected colors are corrected to lighting effect colors, and the lighting effect color sequence of the lighting effect colors is determined, specifically including: Classifying the plurality of user-selected colors according to the three primary color values ​​to obtain three color systems, each color system having a primary color; Correct the user-selected colors in the same color system to obtain lighting effect colors, and set the brightness of each lighting effect color, including: In the same color family: Set the primary color value of the primary color of each user-selected color to the primary color maximum value; For each user-selected color, the two primary colors other than the primary color are used as secondary colors. The sum of the primary color values ​​of the two secondary colors in the same color system is compared. The secondary color with the larger sum is used as the secondary color to be adjusted, and the primary color value of the secondary color with the smaller sum remains unchanged. Correcting the primary color value of the to-be-adjusted secondary primary color of each user-selected color to k*(nm), where k is a preset primary color correction value, n is the number of user-selected colors included in the color system, and m is a sequence number of the user-selected colors in the order in which the user selected the colors, where m is a natural number greater than or equal to 1; According to the lighting effect sorting requirements, different color systems are sorted based on the main primary colors of the color system, and different lighting effect colors in the same color system are sorted based on the brightness of the lighting effect color to obtain the lighting effect color order of each lighting effect color; If the user-selected color is one, splitting the user-selected color into multiple lighting effect colors, and determining a lighting effect color order of the lighting effect colors; The lighting effect is set using the lighting effect color and the lighting effect color sequence.

2. The method for setting multiple colors of vehicle lighting effects according to claim 1, characterized in that: The method of correcting the user-selected color in the same color system to obtain the lighting effect color and setting the brightness of each lighting effect color also includes: Set the brightness of each lighting effect color to Y=K1*C1+K2*C2+K3*C3, where C1 is the primary color value of the first primary color of the lighting effect color, K1 is the weight of the first primary color, C2 is the primary color value of the second primary color of the lighting effect color, K2 is the weight of the second primary color, C3 is the primary color value of the third primary color of the lighting effect color, K3 is the weight of the third primary color, and K1+K2+K3=1.

3. The method for setting multiple colors of vehicle lighting effects according to claim 1, characterized in that: The plurality of user-selected colors are classified according to the three primary color values ​​to obtain three color systems, each of which has a primary color, specifically including: The primary color corresponding to the maximum primary color value in each user-selected color is used as the main primary color of the user-selected color; User-selected colors with the same primary color are grouped into a color family, each with a primary color.

4. The method for setting multiple colors of vehicle lighting effects according to claim 1, characterized in that: The primary color corresponding to the maximum primary color value in each user-selected color is used as the main primary color of the user-selected color, specifically including: For each user-selected color, if there is only one maximum primary color value, the primary color corresponding to the maximum primary color value is used as the main primary color of the user-selected color; If there are multiple maximum primary color values, then according to the preset three-primary color priorities, the primary color with the highest priority is selected from the primary colors corresponding to the multiple maximum primary color values ​​as the main primary color of the user-selected color, where the three primary colors have different priorities; The method of comparing the sum of the primary color values ​​of two secondary primary colors of the same color system, taking the secondary primary color with the larger sum as the secondary primary color to be adjusted, and keeping the primary color value of the secondary primary color with the smaller sum unchanged, specifically includes: Compare the sum of the primary color values ​​of two secondary primary colors of the same color system. If the sum of the primary color values ​​of the two secondary primary colors is not equal, the secondary primary color with the larger sum is used as the secondary primary color to be adjusted, and the primary color value of the secondary primary color with the smaller sum remains unchanged. If the sum of the primary color values ​​of the two secondary primary colors is equal, the secondary primary color with a higher priority is used as the secondary primary color to be adjusted, and the primary color value of the secondary primary color with a lower priority remains unchanged.

5. The method for setting multiple colors of vehicle lighting effects according to claim 1, characterized in that: According to the lighting effect sorting requirements, different color systems are sorted based on the main primary colors of the color system, and different lighting effect colors within the same color system are sorted based on the brightness of the lighting effect colors to obtain the lighting effect color order of each lighting effect color, specifically including: If the lighting effects are sorted from lightest to darkest, then: Sort different color schemes by the weight of their primary colors from large to small, and sort different lighting effect colors within the same color scheme by brightness from large to small; If the lighting effects are sorted from darkest to lightest brightness, then: Sort different color systems according to the weight of the main primary colors of the color system from small to large, and sort different lighting effect colors within the same color system according to brightness from small to large.

6. The method for setting multiple colors of vehicle lighting effects according to claim 1, characterized in that: The step of splitting the user-selected color into a plurality of lighting effect colors and determining the lighting effect color sequence of the lighting effect colors specifically includes: Determine the maximum, middle, and minimum values ​​of the three primary colors of the color selected by the user, set the primary color corresponding to the maximum value of the three primary colors as the primary color, set the primary color corresponding to the middle value as the secondary color to be adjusted, and set the primary color corresponding to the minimum value as the unchanged secondary color; Split the user-selected color into multiple lighting effect colors, where the primary color value of each lighting effect color is set to the maximum value of the primary color, the primary color value of the unchanged secondary primary color remains unchanged, and the primary color value of the secondary primary color to be adjusted for the i-th lighting effect color is set to Lk*(i-1), where k is the preset primary color correction value, L=k*(N-1), N is the total number of lighting effect colors to be split, and i is a natural number numbered sequentially starting from 1; Set the brightness of each lighting effect color to Y=K1*C1+K2*C2+K3*C3, where C1 is the primary color value of the first primary color of the lighting effect color, K1 is the weight of the first primary color, C2 is the primary color value of the second primary color of the lighting effect color, K2 is the weight of the second primary color, C3 is the primary color value of the third primary color of the lighting effect color, K3 is the weight of the third primary color, and K1+K2+K3=1; According to the ordering requirements of the lighting effects, the lighting effect color order of the lighting effect colors is determined according to the brightness of the lighting effect colors.

7. The method for setting multiple colors of vehicle lighting effects according to claim 6, characterized in that: The method of determining the maximum, middle, and minimum values ​​of the three primary color values ​​of the color selected by the user, setting the primary color corresponding to the maximum value of the three primary color values ​​as the primary color, setting the primary color corresponding to the middle value as the secondary color to be adjusted, and setting the primary color corresponding to the minimum value as the unchanged secondary color specifically includes: If the three primary color values ​​of the color selected by the user are different, then determine the maximum, middle, and minimum values ​​of the three primary color values ​​of the color selected by the user, set the primary color corresponding to the maximum value of the three primary color values ​​as the primary color, set the primary color corresponding to the middle value as the secondary color to be adjusted, and set the primary color corresponding to the minimum value as the unchanged secondary color; If the three primary colors of the color selected by the user have the same value, the primary color with the highest priority is selected as the primary color, the primary color with the second highest priority is selected as the secondary color to be adjusted, and the primary color with the lowest priority is selected as the unchanged secondary color. The three primary colors have different priorities. If the three primary color values ​​in the user-selected color include a maximum value and two identical primary color values, the primary color corresponding to the maximum value is set as the primary color, and the primary color with the higher priority among the two primary colors with the same primary color values ​​is set as the secondary color to be adjusted, and the primary color with the lower priority is kept unchanged. If the three primary color values ​​in the color selected by the user include two identical primary color values ​​and a minimum value, the primary color corresponding to the minimum value will be set as the unchanged secondary primary color, and the primary color with a higher priority among the two primary colors corresponding to the same primary color values ​​will be used as the main primary color, and the primary color with a lower priority will be used as the secondary primary color to be adjusted.

8. The method for setting multiple colors of vehicle lighting effects according to claim 6, characterized in that: Determining the lighting effect color sequence of the lighting effect colors according to the brightness of the lighting effect colors specifically includes: If the lighting effects are sorted from lightest to darkest brightness, then: Sort different lighting effect colors from highest to lowest according to brightness; If the lighting effects are sorted from darkest to lightest brightness, then: Sort different lighting effect colors from smallest to largest according to brightness.

9. The method for setting multiple colors of vehicle lighting effects according to claim 1, characterized in that: The method further comprises: Get color adjustment settings; If the color adjustment is set to manual adjustment, the user-selected color is used as the lighting effect color, and the lighting effect color sequence of the lighting effect colors is determined according to the order in which the user selects the user-selected colors; If the user selects multiple colors, the user-selected colors are corrected to lighting effect colors, and the lighting effect color order of the lighting effect colors is determined, specifically including: if the color adjustment setting is automatic adjustment, and the user selects multiple colors, the user-selected colors are corrected to lighting effect colors, and the lighting effect color order of the lighting effect colors is determined; If the user-selected color is one, the user-selected color is split into multiple lighting effect colors, and the lighting effect color order of the lighting effect colors is determined, specifically including: if the color adjustment is set to automatic adjustment, and the user-selected color is one, the user-selected color is split into multiple lighting effect colors, and the lighting effect color order of the lighting effect colors is determined.

10. The method for setting multiple colors of vehicle lighting effects according to any one of claims 1 to 9, characterized in that: The obtaining of the user selected color specifically includes: Displaying a color selection map, where each position in the color selection map corresponds to a color; In response to a movement operation of the operation area, controlling the movement of the color beacon in the color selection map; In response to a selection operation in the operation area, the color of the position corresponding to the color beacon in the color selection map is used as the user-selected color.

11. An electronic device, characterized in that: include: at least one processor; as well as, a memory communicatively connected to at least one of the processors; wherein, The memory stores instructions that can be executed by at least one of the processors, and the instructions are executed by at least one of the processors to enable at least one of the processors to execute the vehicle lighting effect multi-color setting method according to any one of claims 1 to 10.

12. A storage medium, characterized in that: The storage medium stores computer instructions, and when a computer executes the computer instructions, it is used to execute all steps of the vehicle lighting effect multi-color setting method according to any one of claims 1 to 10.

Citation Information

Patent Citations

  • A vehicle ambient lamp control system and method

    CN109104794A